mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Use AttrVec
for Arm
, FieldDef
, and Variant
This commit is contained in:
parent
58c63cf8de
commit
1e2258ffa9
@ -1,7 +1,7 @@
|
|||||||
use std::iter::ExactSizeIterator;
|
use std::iter::ExactSizeIterator;
|
||||||
use std::ops::Deref;
|
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 rustc_span::{symbol::kw, symbol::Ident, BytePos, Pos, Span};
|
||||||
|
|
||||||
use crate::config::lists::*;
|
use crate::config::lists::*;
|
||||||
@ -776,7 +776,7 @@ impl Rewrite for ast::Ty {
|
|||||||
);
|
);
|
||||||
let data = ast::VariantData::Struct(fields.clone(), recovered);
|
let data = ast::VariantData::Struct(fields.clone(), recovered);
|
||||||
let variant = ast::Variant {
|
let variant = ast::Variant {
|
||||||
attrs: vec![],
|
attrs: AttrVec::new(),
|
||||||
id: self.id,
|
id: self.id,
|
||||||
span: self.span,
|
span: self.span,
|
||||||
vis: DEFAULT_VISIBILITY,
|
vis: DEFAULT_VISIBILITY,
|
||||||
@ -800,7 +800,7 @@ impl Rewrite for ast::Ty {
|
|||||||
);
|
);
|
||||||
let data = ast::VariantData::Struct(fields.clone(), recovered);
|
let data = ast::VariantData::Struct(fields.clone(), recovered);
|
||||||
let variant = ast::Variant {
|
let variant = ast::Variant {
|
||||||
attrs: vec![],
|
attrs: AttrVec::new(),
|
||||||
id: self.id,
|
id: self.id,
|
||||||
span: self.span,
|
span: self.span,
|
||||||
vis: DEFAULT_VISIBILITY,
|
vis: DEFAULT_VISIBILITY,
|
||||||
|
Loading…
Reference in New Issue
Block a user