diff options
| author | Urgau <urgau@numericable.fr> | 2022-10-05 23:18:22 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2022-10-08 11:00:13 +0200 |
| commit | c084c263977ba7376ce944b9dd6b8dffdc2eee48 (patch) | |
| tree | 1586b6bd19f7b9a3a2c83c2b5e45caf86138985b /compiler/rustc_feature | |
| parent | a688a0305fad9219505a8f2576446510601bafe8 (diff) | |
| download | rust-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.rs | 2 |
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 |
