1
Fork 0

add guard_patterns unstable feature, without unstable book chapter for now

This commit is contained in:
Max Niederman 2024-08-22 16:48:12 -07:00 committed by Nadrieril
parent ab3cf268b5
commit f8e50d8736
2 changed files with 3 additions and 0 deletions

View file

@ -504,6 +504,8 @@ declare_features! (
(incomplete, generic_const_items, "1.73.0", Some(113521)), (incomplete, generic_const_items, "1.73.0", Some(113521)),
/// Allows registering static items globally, possibly across crates, to iterate over at runtime. /// Allows registering static items globally, possibly across crates, to iterate over at runtime.
(unstable, global_registration, "1.80.0", Some(125119)), (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. /// Allows using `..=X` as a patterns in slices.
(unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)), (unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
/// Allows `if let` guard in match arms. /// Allows `if let` guard in match arms.

View file

@ -985,6 +985,7 @@ symbols! {
global_registration, global_registration,
globs, globs,
gt, gt,
guard_patterns,
half_open_range_patterns, half_open_range_patterns,
half_open_range_patterns_in_slices, half_open_range_patterns_in_slices,
hash, hash,