Add drawback about trait name not matching

This commit is contained in:
Alice Ryhl 2024-05-11 10:49:13 +02:00
parent 4cd0f76661
commit 44e8727c2c
1 changed files with 5 additions and 0 deletions

View File

@ -346,6 +346,11 @@ is `NonNull<RcInner<T>>` (as opposed to `NonNull<T>`).
[`Cell`], so hopefully that will be enough incentive to continue work on the
underlying traits.
- This would be the first example in the standard library of a derive macro that
does not implement a trait of the same name as the macro. (However, there are
examples of macros that implement multiple traits: `#[derive(PartialEq)]`
also implements `StructuralPartialEq`.)
# Rationale and alternatives
[rationale-and-alternatives]: #rationale-and-alternatives