From 63a5f399aef46f94a24e0d0a3b03eb7f66a33800 Mon Sep 17 00:00:00 2001 From: Caio Date: Mon, 9 Sep 2019 09:26:25 -0300 Subject: Resolve attributes in several places Arm, Field, FieldPat, GenericParam, Param, StructField and Variant --- src/libsyntax/parse/parser/generics.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse/parser/generics.rs') diff --git a/src/libsyntax/parse/parser/generics.rs b/src/libsyntax/parse/parser/generics.rs index 54f24f8ef2b..3e6118ad86f 100644 --- a/src/libsyntax/parse/parser/generics.rs +++ b/src/libsyntax/parse/parser/generics.rs @@ -49,7 +49,8 @@ impl<'a> Parser<'a> { bounds, kind: GenericParamKind::Type { default, - } + }, + is_placeholder: false }) } @@ -66,7 +67,8 @@ impl<'a> Parser<'a> { bounds: Vec::new(), kind: GenericParamKind::Const { ty, - } + }, + is_placeholder: false }) } @@ -90,6 +92,7 @@ impl<'a> Parser<'a> { attrs: attrs.into(), bounds, kind: ast::GenericParamKind::Lifetime, + is_placeholder: false }); } else if self.check_keyword(kw::Const) { // Parse const parameter. -- cgit 1.4.1-3-g733a5