about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-06-13 13:29:40 +0100
committervarkor <github@varkor.com>2018-06-20 12:23:23 +0100
commit8bc3a35576dd4e2f02b9d34fe5ed241288b5bfbe (patch)
tree0958e977d89471eb1c3d1d3a2f16fee8d363a5a4 /src/libsyntax/parse/parser.rs
parent390aa5d42152909d927a84a04621f334397d3164 (diff)
downloadrust-8bc3a35576dd4e2f02b9d34fe5ed241288b5bfbe.tar.gz
rust-8bc3a35576dd4e2f02b9d34fe5ed241288b5bfbe.zip
Fix HasAttrs support for GenericParam
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index b2cfb459c35..f69361c28ad 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4752,7 +4752,7 @@ impl<'a> Parser<'a> {
                         self.span_err(question_span,
                                       "`?` may only modify trait bounds, not lifetime bounds");
                     }
-                    bounds.push(Outlives(RegionTyParamBound(self.expect_lifetime())));
+                    bounds.push(Outlives(self.expect_lifetime()));
                     if has_parens {
                         self.expect(&token::CloseDelim(token::Paren))?;
                         self.span_err(self.prev_span,