diff options
| author | Caio <c410.f3r@gmail.com> | 2019-09-09 09:26:25 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-09-09 09:27:15 -0300 |
| commit | 63a5f399aef46f94a24e0d0a3b03eb7f66a33800 (patch) | |
| tree | be07ad3688b6a88ed9d0b2f999340c7a5e9e9d23 /src/libsyntax/parse/parser.rs | |
| parent | 2c0931e168671d7536b58563dc3664c948a8dcd3 (diff) | |
| download | rust-63a5f399aef46f94a24e0d0a3b03eb7f66a33800.tar.gz rust-63a5f399aef46f94a24e0d0a3b03eb7f66a33800.zip | |
Resolve attributes in several places
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index fcaf5065dac..fcebfa29962 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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). |
