We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096277e commit 1fbf172Copy full SHA for 1fbf172
compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
@@ -680,6 +680,12 @@ impl<'a> TraitDef<'a> {
680
param_clone
681
}
682
})
683
+ .map(|mut param| {
684
+ // Remove all attributes, because there might be helper attributes
685
+ // from other macros that will not be valid in the expanded implementation.
686
+ param.attrs = ThinVec::new();
687
+ param
688
+ })
689
.collect();
690
691
// and similarly for where clauses
0 commit comments