Skip to content

Commit e7a5249

Browse files
authored
Rollup merge of #102275 - Urgau:stabilize-half_open_range_patterns, r=cjgillot
Stabilize `half_open_range_patterns` This PR stabilize `feature(half_open_range_patterns)`: ``` Allows using `..=X` as a pattern. ``` And adds a new `feature(half_open_range_patterns_in_slices)` for the slice part, rust-lang/rust#102275 (comment). The FCP was completed in rust-lang/rust#67264.
2 parents 5ccf727 + 5f6e1d3 commit e7a5249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/match_overlapping_arm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(exclusive_range_pattern)]
2-
#![feature(half_open_range_patterns)]
2+
33
#![warn(clippy::match_overlapping_arm)]
44
#![allow(clippy::redundant_pattern_matching)]
55
#![allow(clippy::if_same_then_else, clippy::equatable_if_let)]

0 commit comments

Comments
 (0)