From 218189536d95c12d7abbe01af3725c84a628bc51 Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Sat, 8 Sep 2018 07:52:03 +0100 Subject: Handle impl trait in MIR type checked for assignments. --- src/libsyntax/feature_gate.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 65ffd96e7a0..eb40ea01630 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -494,7 +494,7 @@ declare_features! ( // Allows `Self` in type definitions (active, self_in_typedefs, "1.30.0", Some(49303), None), - // unsized rvalues at arguments and parameters + // Allows unsized rvalues at arguments and parameters (active, unsized_locals, "1.30.0", Some(48055), None), // #![test_runner] @@ -505,13 +505,16 @@ declare_features! ( (active, custom_inner_attributes, "1.30.0", Some(38356), None), // Self struct constructor (RFC 2302) - (active, self_struct_ctor, "1.31.0", Some(51994), None), + (active, self_struct_ctor, "1.30.0", Some(51994), None), // allow mixing of bind-by-move in patterns and references to // those identifiers in guards, *if* we are using MIR-borrowck // (aka NLL). Essentially this means you need to be on // edition:2018 or later. (active, bind_by_move_pattern_guards, "1.30.0", Some(15287), None), + + // Allows `impl Trait` in bindings (`let`, `const`, `static`) + (active, impl_trait_in_bindings, "1.30.0", Some(34511), None), ); declare_features! ( -- cgit 1.4.1-3-g733a5