Auto merge of #108128 - clubby789:builtin-derived-attr, r=jackh726
Properly check for builtin derived code Fixes #108122
This commit is contained in:
commit
21e5b941e0
8 changed files with 60 additions and 34 deletions
|
@ -761,8 +761,7 @@ impl<'a> TraitDef<'a> {
|
|||
let path = cx.path_all(self.span, false, vec![type_ident], self_params);
|
||||
let self_type = cx.ty_path(path);
|
||||
|
||||
let attr = cx.attr_word(sym::automatically_derived, self.span);
|
||||
let attrs = thin_vec![attr];
|
||||
let attrs = thin_vec![cx.attr_word(sym::automatically_derived, self.span),];
|
||||
let opt_trait_ref = Some(trait_ref);
|
||||
|
||||
cx.item(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue