We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c9b49 commit e30f66fCopy full SHA for e30f66f
compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
@@ -683,7 +683,7 @@ impl<'a> TraitDef<'a> {
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();
+ param.attrs.clear();
687
param
688
})
689
.collect();
0 commit comments