diff options
author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-11-17 10:55:13 +0100 |
---|---|---|
committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-12-26 18:24:10 +0100 |
commit | 06cc9c26da18848fd97b6d0d6e4e1760497a3c0c (patch) | |
tree | 04b26f2ed62099fd2880b064544c14a1f290503a /compiler/rustc_parse/src/parser/generics.rs | |
parent | 1f5beec3b111560be181283009ef96da6ac5e7a7 (diff) | |
download | rust-06cc9c26da18848fd97b6d0d6e4e1760497a3c0c.tar.gz |
stabilize min_const_generics
Diffstat (limited to 'compiler/rustc_parse/src/parser/generics.rs')
-rw-r--r-- | compiler/rustc_parse/src/parser/generics.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/generics.rs b/compiler/rustc_parse/src/parser/generics.rs index ed8d4f78426..860e63020bb 100644 --- a/compiler/rustc_parse/src/parser/generics.rs +++ b/compiler/rustc_parse/src/parser/generics.rs @@ -5,7 +5,7 @@ use rustc_ast::{ self as ast, Attribute, GenericBounds, GenericParam, GenericParamKind, WhereClause, }; use rustc_errors::PResult; -use rustc_span::symbol::{kw, sym}; +use rustc_span::symbol::kw; impl<'a> Parser<'a> { /// Parses bounds of a lifetime parameter `BOUND + BOUND + BOUND`, possibly with trailing `+`. @@ -56,8 +56,6 @@ impl<'a> Parser<'a> { self.expect(&token::Colon)?; let ty = self.parse_ty()?; - self.sess.gated_spans.gate(sym::min_const_generics, const_span.to(self.prev_token.span)); - Ok(GenericParam { ident, id: ast::DUMMY_NODE_ID, |