From 44e8727c2cd3bab72e68965819921d4b60eeed66 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sat, 11 May 2024 10:49:13 +0200 Subject: [PATCH] Add drawback about trait name not matching --- text/3621-derive-smart-pointer.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/text/3621-derive-smart-pointer.md b/text/3621-derive-smart-pointer.md index bacf7620a..e81a3beb5 100644 --- a/text/3621-derive-smart-pointer.md +++ b/text/3621-derive-smart-pointer.md @@ -346,6 +346,11 @@ is `NonNull>` (as opposed to `NonNull`). [`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