about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-08-25 08:50:54 +0900
committerGitHub <noreply@github.com>2022-08-25 08:50:54 +0900
commitf4550a6edfcbb1e284d9eb1d095f034848e1ee01 (patch)
tree2715fec50cb3de2653095945c74926093171573b /compiler/rustc_parse/src
parentaddacb5878b9970ebc1665768a05cb601e7aea15 (diff)
parent31e39446ec2f251efbcaf9eb22c80e93021f9bbc (diff)
downloadrust-f4550a6edfcbb1e284d9eb1d095f034848e1ee01.tar.gz
rust-f4550a6edfcbb1e284d9eb1d095f034848e1ee01.zip
Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petrochenkov
Stabilize `#![feature(label_break_value)]`

See the stabilization report in https://github.com/rust-lang/rust/issues/48594#issuecomment-1186213313.
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 17117cbc8fb..18aa109d7a6 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -2014,10 +2014,6 @@ impl<'a> Parser<'a> {
             }
         }
 
-        if let Some(label) = opt_label {
-            self.sess.gated_spans.gate(sym::label_break_value, label.ident.span);
-        }
-
         if self.token.is_whole_block() {
             self.sess.emit_err(InvalidBlockMacroSegment {
                 span: self.token.span,