Skip to content

Commit

Permalink
replace new ThinVec with clear()
Browse files Browse the repository at this point in the history
Co-authored-by: León Orell Valerian Liehr <[email protected]>
  • Loading branch information
PonasKovas and fmease authored Nov 11, 2024
1 parent e2c9b49 commit e30f66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ impl<'a> TraitDef<'a> {
.map(|mut param| {
// Remove all attributes, because there might be helper attributes
// from other macros that will not be valid in the expanded implementation.
param.attrs = ThinVec::new();
param.attrs.clear();
param
})
.collect();
Expand Down

0 comments on commit e30f66f

Please sign in to comment.