diff options
| author | bors <bors@rust-lang.org> | 2017-05-23 04:48:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-23 04:48:15 +0000 |
| commit | 852b7cb91ed44f6cc77f855bd8281da4accbd2fb (patch) | |
| tree | 0baca5f9b17776de133ffdd4f67bd728006279b9 /src/libsyntax | |
| parent | 2e9139197e908435673c62a14381fbd4f8166319 (diff) | |
| parent | aa7762f91fc6ee18faf477800d9e5bddb8637507 (diff) | |
| download | rust-852b7cb91ed44f6cc77f855bd8281da4accbd2fb.tar.gz rust-852b7cb91ed44f6cc77f855bd8281da4accbd2fb.zip | |
Auto merge of #42165 - frewsxcv:rollup, r=frewsxcv
Rollup of 8 pull requests - Successful merges: #42016, #42122, #42144, #42145, #42151, #42152, #42160, #42163 - Failed merges:
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index bebb26afb54..e1b7d4681ad 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -297,9 +297,6 @@ declare_features! ( (active, use_extern_macros, "1.15.0", Some(35896)), - // Allows `break {expr}` with a value inside `loop`s. - (active, loop_break_value, "1.14.0", Some(37339)), - // Allows #[target_feature(...)] (active, target_feature, "1.15.0", None), @@ -423,6 +420,8 @@ declare_features! ( (accepted, pub_restricted, "1.18.0", Some(32409)), // The #![windows_subsystem] attribute (accepted, windows_subsystem, "1.18.0", Some(37499)), + // Allows `break {expr}` with a value inside `loop`s. + (accepted, loop_break_value, "1.19.0", Some(37339)), ); // If you change this, please modify src/doc/unstable-book as well. You must // move that documentation into the relevant place in the other docs, and @@ -1301,10 +1300,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { } } } - ast::ExprKind::Break(_, Some(_)) => { - gate_feature_post!(&self, loop_break_value, e.span, - "`break` with a value is experimental"); - } ast::ExprKind::Lit(ref lit) => { if let ast::LitKind::Int(_, ref ty) = lit.node { match *ty { |
