diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-10-31 18:25:40 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-10-31 19:08:10 +0200 |
| commit | 73bde2f0ce38c57255840dd879ec10475ef44f2c (patch) | |
| tree | 838de071d3abb9c00496db479c3a3cf5e1685906 /src/libsyntax | |
| parent | 20bfff66a95811c31990a774ee522f096d955b44 (diff) | |
| download | rust-73bde2f0ce38c57255840dd879ec10475ef44f2c.tar.gz rust-73bde2f0ce38c57255840dd879ec10475ef44f2c.zip | |
Revert "pre-expansion gate label_break_value"
This reverts commit 137ded8ab1edf5112c45e0b6854272ae2e9d3a6d.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate/check.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate/check.rs b/src/libsyntax/feature_gate/check.rs index d924cb608f8..1846ba5ed7b 100644 --- a/src/libsyntax/feature_gate/check.rs +++ b/src/libsyntax/feature_gate/check.rs @@ -518,6 +518,12 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { "type ascription is experimental"); } } + ast::ExprKind::Block(_, opt_label) => { + if let Some(label) = opt_label { + gate_feature_post!(&self, label_break_value, label.ident.span, + "labels on blocks are unstable"); + } + } _ => {} } visit::walk_expr(self, e) |
