about summary refs log tree commit diff
path: root/compiler/rustc_feature/src
diff options
context:
space:
mode:
authorMax Niederman <max@maxniederman.com>2024-08-22 16:48:12 -0700
committerNadrieril <nadrieril+git@gmail.com>2024-11-24 18:08:09 +0100
commitf8e50d87368099032e2ae04a1e3c8fca9fdfeee8 (patch)
tree33b9a153db4ee1b5695417a9a02037faebab9944 /compiler/rustc_feature/src
parentab3cf268b518f0312d86346db3bf79d5ec33b3b7 (diff)
downloadrust-f8e50d87368099032e2ae04a1e3c8fca9fdfeee8.tar.gz
rust-f8e50d87368099032e2ae04a1e3c8fca9fdfeee8.zip
add `guard_patterns` unstable feature, without unstable book chapter for now
Diffstat (limited to 'compiler/rustc_feature/src')
-rw-r--r--compiler/rustc_feature/src/unstable.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs
index cf0f2a7e48c..2d577f3f35d 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -504,6 +504,8 @@ declare_features! (
     (incomplete, generic_const_items, "1.73.0", Some(113521)),
     /// Allows registering static items globally, possibly across crates, to iterate over at runtime.
     (unstable, global_registration, "1.80.0", Some(125119)),
+    /// Allows using guards in patterns.
+    (incomplete, guard_patterns, "CURRENT_RUSTC_VERSION", Some(129967)),
     /// Allows using `..=X` as a patterns in slices.
     (unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
     /// Allows `if let` guard in match arms.