Skip to content

Commit 5ae7363

Browse files
committedOct 8, 2022
Stabilize half_open_range_patterns
1 parent c084c26 commit 5ae7363

File tree

43 files changed

+258
-398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+258
-398
lines changed
 

‎compiler/rustc_feature/src/accepted.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ declare_features! (
169169
(accepted, global_allocator, "1.28.0", Some(27389), None),
170170
// FIXME: explain `globs`.
171171
(accepted, globs, "1.0.0", None, None),
172+
/// Allows using `..=X` as a pattern.
173+
(accepted, half_open_range_patterns, "CURRENT_RUSTC_VERSION", Some(67264), None),
172174
/// Allows using the `u128` and `i128` types.
173175
(accepted, i128_type, "1.26.0", Some(35118), None),
174176
/// Allows the use of `if let` expressions.

‎compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#![feature(type_alias_impl_trait)]
4545
#![feature(associated_type_bounds)]
4646
#![feature(rustc_attrs)]
47-
#![feature(half_open_range_patterns)]
47+
#![cfg_attr(bootstrap, feature(half_open_range_patterns))]
4848
#![feature(control_flow_enum)]
4949
#![feature(associated_type_defaults)]
5050
#![feature(trusted_step)]

0 commit comments

Comments
 (0)
Please sign in to comment.