Releases: ModProg/derive-where
Releases · ModProg/derive-where
Generate `#[automatically_derived]`
Fix `Copy Clone` implementation
Fixed
- Use the
Copy
implementation forClone
only if no bounds are present.
Make discriminant default type validation edition-proof
Changed
- Use safe casting in
PartialOrd
andOrd
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.
Take representation into account when getting discriminant
Fixed
- Take representation into account when determining the discriminant type.
Changed
- Use stable methods to retrieve the discriminant in
PartialOrd
andOrd
implementations. Safe methods used with thesafe
crate feature don't use
recursive matches anymore, significantly improving the performance.
Fix `PartialOrd` implementation using `Ord` with bounds [YANKED]
Fixed
- Don't use
Ord
inPartialOrd
implementations if using any bounds.
Fix field name collisions [YANKED]
Fixed
- Avoid collisions between field names and trait method parameters.
Changed
PartialOrd
implementations now useOrd
if applicable.
Fix Raw Identifiers [YANKED]
Fixed
- Correctly handle raw identifiers in named fields.
`syn` v2.0 update [YANKED]
Changed
- Updated
syn
to v2. Debug
output of structs that skip fields appearsnon_exhaustive
now.
Deprecated
- The
crate
attribute now takes a bare path instead of a path inside a string
literal.
Added `incomparable` attribute for partial comparison traits [YANKED]
Added
incomparable
variant and item attribute forPartialEq
andPartialOrd
derives, yielding false on all comparisons but!=
.
1.0 version release! 🥳 [YANKED]
- No changes.