Skip to content

Commit

Permalink
Rollup merge of #102275 - Urgau:stabilize-half_open_range_patterns, r…
Browse files Browse the repository at this point in the history
…=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.
  • Loading branch information
JohnTitor authored Oct 10, 2022
2 parents 5ccf727 + 5f6e1d3 commit e7a5249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/match_overlapping_arm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(exclusive_range_pattern)]
#![feature(half_open_range_patterns)]

#![warn(clippy::match_overlapping_arm)]
#![allow(clippy::redundant_pattern_matching)]
#![allow(clippy::if_same_then_else, clippy::equatable_if_let)]
Expand Down

0 comments on commit e7a5249

Please sign in to comment.