Skip to content

Commit 44e8727

Browse files
committed
Add drawback about trait name not matching
1 parent 4cd0f76 commit 44e8727

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/3621-derive-smart-pointer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ is `NonNull<RcInner<T>>` (as opposed to `NonNull<T>`).
346346
[`Cell`], so hopefully that will be enough incentive to continue work on the
347347
underlying traits.
348348

349+
- This would be the first example in the standard library of a derive macro that
350+
does not implement a trait of the same name as the macro. (However, there are
351+
examples of macros that implement multiple traits: `#[derive(PartialEq)]`
352+
also implements `StructuralPartialEq`.)
353+
349354
# Rationale and alternatives
350355
[rationale-and-alternatives]: #rationale-and-alternatives
351356

0 commit comments

Comments
 (0)