diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-07-24 18:03:25 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-08-19 16:53:43 -0700 |
| commit | 9f683bed3dfa6516bbe81b6e58a9a8f2f00b1250 (patch) | |
| tree | 9459b728322d70e90eae4c31406554fe1d59c5c9 /src/libsyntax | |
| parent | 817efc2489806b8188c2f5693fb3b0dcf9c76eb1 (diff) | |
Rename `catch_expr` feature to `try_blocks`
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index f796c0e2e53..c89efcf4ba0 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -331,7 +331,7 @@ declare_features! ( (active, abi_x86_interrupt, "1.17.0", Some(40180), None), // Allows the `try {...}` expression - (active, catch_expr, "1.17.0", Some(31436), None), + (active, try_blocks, "1.29.0", Some(31436), None), // Used to preserve symbols (see llvm.used) (active, used, "1.18.0", Some(40289), None), @@ -1735,7 +1735,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { "yield syntax is experimental"); } ast::ExprKind::TryBlock(_) => { - gate_feature_post!(&self, catch_expr, e.span, "`try` expression is experimental"); + gate_feature_post!(&self, try_blocks, e.span, "`try` expression is experimental"); } ast::ExprKind::IfLet(ref pats, ..) | ast::ExprKind::WhileLet(ref pats, ..) => { if pats.len() > 1 { |
