Skip to content

Commit 1e2258f

Browse files
committed
Use AttrVec for Arm, FieldDef, and Variant
1 parent 58c63cf commit 1e2258f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::iter::ExactSizeIterator;
22
use std::ops::Deref;
33

4-
use rustc_ast::ast::{self, FnRetTy, Mutability};
4+
use rustc_ast::ast::{self, AttrVec, FnRetTy, Mutability};
55
use rustc_span::{symbol::kw, symbol::Ident, BytePos, Pos, Span};
66

77
use crate::config::lists::*;
@@ -776,7 +776,7 @@ impl Rewrite for ast::Ty {
776776
);
777777
let data = ast::VariantData::Struct(fields.clone(), recovered);
778778
let variant = ast::Variant {
779-
attrs: vec![],
779+
attrs: AttrVec::new(),
780780
id: self.id,
781781
span: self.span,
782782
vis: DEFAULT_VISIBILITY,
@@ -800,7 +800,7 @@ impl Rewrite for ast::Ty {
800800
);
801801
let data = ast::VariantData::Struct(fields.clone(), recovered);
802802
let variant = ast::Variant {
803-
attrs: vec![],
803+
attrs: AttrVec::new(),
804804
id: self.id,
805805
span: self.span,
806806
vis: DEFAULT_VISIBILITY,

0 commit comments

Comments
 (0)