Skip to content

Commit e30f66f

Browse files
PonasKovasfmease
andauthored
replace new ThinVec with clear()
Co-authored-by: León Orell Valerian Liehr <[email protected]>
1 parent e2c9b49 commit e30f66f

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_builtin_macros/src/deriving/generic

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/deriving/generic/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ impl<'a> TraitDef<'a> {
683683
.map(|mut param| {
684684
// Remove all attributes, because there might be helper attributes
685685
// from other macros that will not be valid in the expanded implementation.
686-
param.attrs = ThinVec::new();
686+
param.attrs.clear();
687687
param
688688
})
689689
.collect();

0 commit comments

Comments
 (0)