Resolve attributes in several places
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
This commit is contained in:
parent
2c0931e168
commit
63a5f399ae
37 changed files with 1135 additions and 527 deletions
|
@ -1040,7 +1040,14 @@ impl<'a> Parser<'a> {
|
|||
|
||||
let span = lo.to(self.token.span);
|
||||
|
||||
Ok(Param { attrs: attrs.into(), id: DUMMY_NODE_ID, pat, span, ty })
|
||||
Ok(Param {
|
||||
attrs: attrs.into(),
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
is_placeholder: false,
|
||||
pat,
|
||||
span,
|
||||
ty,
|
||||
})
|
||||
}
|
||||
|
||||
/// Parses mutability (`mut` or nothing).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue