diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-17 07:11:13 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-17 08:04:54 +0900 |
| commit | 1e2258ffa949bf4d273259e78d326857c0b2bb3d (patch) | |
| tree | be6c15c1705377e7d0bacca3c4ff875cbd3cb4cc | |
| parent | 58c63cf8dec2b7d97667932c17248f774dd6e1ab (diff) | |
| download | rust-1e2258ffa949bf4d273259e78d326857c0b2bb3d.tar.gz rust-1e2258ffa949bf4d273259e78d326857c0b2bb3d.zip | |
Use `AttrVec` for `Arm`, `FieldDef`, and `Variant`
| -rw-r--r-- | src/types.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.rs b/src/types.rs index 5597af9ee32..974c0c5990c 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,7 +1,7 @@ use std::iter::ExactSizeIterator; use std::ops::Deref; -use rustc_ast::ast::{self, FnRetTy, Mutability}; +use rustc_ast::ast::{self, AttrVec, FnRetTy, Mutability}; use rustc_span::{symbol::kw, symbol::Ident, BytePos, Pos, Span}; use crate::config::lists::*; @@ -776,7 +776,7 @@ impl Rewrite for ast::Ty { ); let data = ast::VariantData::Struct(fields.clone(), recovered); let variant = ast::Variant { - attrs: vec![], + attrs: AttrVec::new(), id: self.id, span: self.span, vis: DEFAULT_VISIBILITY, @@ -800,7 +800,7 @@ impl Rewrite for ast::Ty { ); let data = ast::VariantData::Struct(fields.clone(), recovered); let variant = ast::Variant { - attrs: vec![], + attrs: AttrVec::new(), id: self.id, span: self.span, vis: DEFAULT_VISIBILITY, |
