about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-26 09:20:33 +0000
committerbors <bors@rust-lang.org>2018-06-26 09:20:33 +0000
commit309fd8a6fb059d38ea56274968feff2ef738184b (patch)
tree01e87f88461c1d465b5827b4864a9bbd71a63bf6 /src/libsyntax
parent773ce53ce7b3acb97cfbd3d189dc3fbf33ec05c6 (diff)
parent91680347a7ef48ddffd9ff06eedb54a550891cf1 (diff)
downloadrust-309fd8a6fb059d38ea56274968feff2ef738184b.tar.gz
rust-309fd8a6fb059d38ea56274968feff2ef738184b.zip
Auto merge of #49469 - Nokel81:allow-irrefutable-let-patterns, r=nikomatsakis
Implementation of RFC 2086 - Allow Irrefutable Let patterns

This is the set of changes for RFC2086. Tracking issue #44495. Rendered [here](https://github.com/rust-lang/rfcs/pull/2086)
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index ccb2f51f964..51d7a236995 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -458,6 +458,9 @@ declare_features! (
     // Scoped attributes
     (active, tool_attributes, "1.25.0", Some(44690), None),
 
+    // allow irrefutable patterns in if-let and while-let statements (RFC 2086)
+    (active, irrefutable_let_patterns, "1.27.0", Some(44495), None),
+
     // Allows use of the :literal macro fragment specifier (RFC 1576)
     (active, macro_literal_matcher, "1.27.0", Some(35625), None),