Use AttrVec
for Arm
, FieldDef
, and Variant
This commit is contained in:
parent
9fef8d91b4
commit
4f8e0ebcc5
7 changed files with 16 additions and 16 deletions
|
@ -2116,7 +2116,7 @@ impl<'a> Parser<'a> {
|
|||
let span = body.span;
|
||||
return Ok((
|
||||
ast::Arm {
|
||||
attrs,
|
||||
attrs: attrs.into(),
|
||||
pat,
|
||||
guard,
|
||||
body,
|
||||
|
@ -2170,7 +2170,7 @@ impl<'a> Parser<'a> {
|
|||
|
||||
Ok((
|
||||
ast::Arm {
|
||||
attrs,
|
||||
attrs: attrs.into(),
|
||||
pat,
|
||||
guard,
|
||||
body: expr,
|
||||
|
|
|
@ -1143,7 +1143,7 @@ impl<'a> Parser<'a> {
|
|||
ident,
|
||||
vis,
|
||||
id: DUMMY_NODE_ID,
|
||||
attrs: variant_attrs,
|
||||
attrs: variant_attrs.into(),
|
||||
data: struct_def,
|
||||
disr_expr,
|
||||
span: vlo.to(this.prev_token.span),
|
||||
|
@ -1286,7 +1286,7 @@ impl<'a> Parser<'a> {
|
|||
ident: None,
|
||||
id: DUMMY_NODE_ID,
|
||||
ty,
|
||||
attrs,
|
||||
attrs: attrs.into(),
|
||||
is_placeholder: false,
|
||||
},
|
||||
TrailingToken::MaybeComma,
|
||||
|
@ -1460,7 +1460,7 @@ impl<'a> Parser<'a> {
|
|||
vis,
|
||||
id: DUMMY_NODE_ID,
|
||||
ty,
|
||||
attrs,
|
||||
attrs: attrs.into(),
|
||||
is_placeholder: false,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue