diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-09 17:42:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-09 17:42:23 +0200 |
| commit | 457a23fabe4caecb5b18c0d6a801f1393a4dac80 (patch) | |
| tree | 33e29f45bf31895d123021669313521067b60822 /src/libsyntax/parse/parser.rs | |
| parent | 824383d4ab66abd32abc6e19b68d78ecfddcb7d4 (diff) | |
| parent | 63a5f399aef46f94a24e0d0a3b03eb7f66a33800 (diff) | |
| download | rust-457a23fabe4caecb5b18c0d6a801f1393a4dac80.tar.gz rust-457a23fabe4caecb5b18c0d6a801f1393a4dac80.zip | |
Rollup merge of #63468 - c410-f3r:attrs, r=petrochenkov
Resolve attributes in several places Resolve attributes for Arm, Field, FieldPat, GenericParam, Param, StructField and Variant. This PR is based on @petrochenkov work located at https://github.com/petrochenkov/rust/commit/83fdb8d598c1a871d40b21faed64ee698b74f814.
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). |
