diff options
| author | Urgau <urgau@numericable.fr> | 2022-09-24 17:22:04 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2022-10-08 11:00:13 +0200 |
| commit | 5ae73634dc63e48a23467b970e2fbcc81cb2ec73 (patch) | |
| tree | 9e6dd7d15925f225e293f6e02c008579ad48954c /compiler/rustc_parse/src/parser | |
| parent | c084c263977ba7376ce944b9dd6b8dffdc2eee48 (diff) | |
| download | rust-5ae73634dc63e48a23467b970e2fbcc81cb2ec73.tar.gz rust-5ae73634dc63e48a23467b970e2fbcc81cb2ec73.zip | |
Stabilize half_open_range_patterns
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/pat.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/pat.rs b/compiler/rustc_parse/src/parser/pat.rs index 0250b518243..56efec422d6 100644 --- a/compiler/rustc_parse/src/parser/pat.rs +++ b/compiler/rustc_parse/src/parser/pat.rs @@ -777,7 +777,6 @@ impl<'a> Parser<'a> { /// expression syntax `...expr` for splatting in expressions. fn parse_pat_range_to(&mut self, mut re: Spanned<RangeEnd>) -> PResult<'a, PatKind> { let end = self.parse_pat_range_end()?; - self.sess.gated_spans.gate(sym::half_open_range_patterns, re.span.to(self.prev_token.span)); if let RangeEnd::Included(ref mut syn @ RangeSyntax::DotDotDot) = &mut re.node { *syn = RangeSyntax::DotDotEq; self.struct_span_err(re.span, "range-to patterns with `...` are not allowed") |
