about summary refs log tree commit diff
path: root/compiler/rustc_feature
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2022-10-05 23:18:22 +0200
committerUrgau <urgau@numericable.fr>2022-10-08 11:00:13 +0200
commitc084c263977ba7376ce944b9dd6b8dffdc2eee48 (patch)
tree1586b6bd19f7b9a3a2c83c2b5e45caf86138985b /compiler/rustc_feature
parenta688a0305fad9219505a8f2576446510601bafe8 (diff)
downloadrust-c084c263977ba7376ce944b9dd6b8dffdc2eee48.tar.gz
rust-c084c263977ba7376ce944b9dd6b8dffdc2eee48.zip
Split slice part of feature(half_open_range_patterns) to [...]_in_slices
Diffstat (limited to 'compiler/rustc_feature')
-rw-r--r--compiler/rustc_feature/src/active.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs
index 71ad54291b2..48c40eae662 100644
--- a/compiler/rustc_feature/src/active.rs
+++ b/compiler/rustc_feature/src/active.rs
@@ -414,6 +414,8 @@ declare_features! (
     (incomplete, generic_const_exprs, "1.56.0", Some(76560), None),
     /// Allows using `..X`, `..=X`, `...X`, and `X..` as a pattern.
     (active, half_open_range_patterns, "1.41.0", Some(67264), None),
+    /// Allows using `..=X` as a patterns in slices.
+    (active, half_open_range_patterns_in_slices, "CURRENT_RUSTC_VERSION", Some(67264), None),
     /// Allows `if let` guard in match arms.
     (active, if_let_guard, "1.47.0", Some(51114), None),
     /// Allows using imported `main` function