about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2021-04-04 17:59:31 -0700
committerJubilee Young <workingjubilee@gmail.com>2021-04-05 22:02:18 -0700
commit91bc117e53bc97cdc60192d16a9ade253d87deb6 (patch)
tree82ed4fd4b0a921723f9529a7be62d6bdec2ad5c8 /compiler/rustc_parse/src
parenta7e808ed2513013d21d209d3fb8704ad221d6311 (diff)
downloadrust-91bc117e53bc97cdc60192d16a9ade253d87deb6.tar.gz
rust-91bc117e53bc97cdc60192d16a9ade253d87deb6.zip
Allow exclusive range-from patterns
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/pat.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/pat.rs b/compiler/rustc_parse/src/parser/pat.rs
index 0abefbd6a12..1ced7eeeebb 100644
--- a/compiler/rustc_parse/src/parser/pat.rs
+++ b/compiler/rustc_parse/src/parser/pat.rs
@@ -715,7 +715,6 @@ impl<'a> Parser<'a> {
         } else if self.eat(&token::DotDotEq) {
             RangeEnd::Included(RangeSyntax::DotDotEq)
         } else if self.eat(&token::DotDot) {
-            self.sess.gated_spans.gate(sym::exclusive_range_pattern, self.prev_token.span);
             RangeEnd::Excluded
         } else {
             return None;
@@ -735,7 +734,6 @@ impl<'a> Parser<'a> {
             Some(self.parse_pat_range_end()?)
         } else {
             // Parsing e.g. `X..`.
-            self.sess.gated_spans.gate(sym::half_open_range_patterns, begin.span.to(re.span));
             if let RangeEnd::Included(_) = re.node {
                 // FIXME(Centril): Consider semantic errors instead in `ast_validation`.
                 // Possibly also do this for `X..=` in *expression* contexts.