Skip to content

Make discriminant default type validation edition-proof

Compare
Choose a tag to compare
@daxpedda daxpedda released this 03 Sep 11:41
· 16 commits to main since this release
d2f96a6

Changed

  • Use safe casting in PartialOrd and Ord implementations in more cases when
    possible.
  • Avoid unnecessarily validating the default discriminant type in some cases.
  • Apply default enum discriminant type validation to all representations and
    make it cross-edition safe.