about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorSebastian Malton <sebastian@malton.name>2018-06-03 23:31:49 -0400
committerJake Goulding <jake.goulding@gmail.com>2018-06-05 10:19:21 -0400
commit4fe40635ef3c2cdbc2e3f62ca71f0e2235e70639 (patch)
tree94089961baf76e9fd6ad1ce82c65de281bc74c52 /src/libsyntax
parent4122885e0f99b3f28e65c122cde48de5bfc8231a (diff)
downloadrust-4fe40635ef3c2cdbc2e3f62ca71f0e2235e70639.tar.gz
rust-4fe40635ef3c2cdbc2e3f62ca71f0e2235e70639.zip
Implementation of RFC 2086 - Allow Irrefutable Let patterns
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 51788b6063a..f08a404a02a 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -467,6 +467,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_pattern, "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),