1
Fork 0

Rollup merge of #136167 - pitaj:new_range, r=Nadrieril

Implement unstable `new_range` feature

Switches `a..b`, `a..`, and `a..=b` to resolve to the new range types.

For rust-lang/rfcs#3550
Tracking issue #123741

also adds the re-export that was missed in the original implementation of `new_range_api`
This commit is contained in:
Jacob Pratt 2025-02-04 05:36:52 -05:00 committed by GitHub
commit d31e137d6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 252 additions and 54 deletions

View file

@ -570,6 +570,8 @@ declare_features! (
(unstable, never_type, "1.13.0", Some(35121)),
/// Allows diverging expressions to fall back to `!` rather than `()`.
(unstable, never_type_fallback, "1.41.0", Some(65992)),
/// Switch `..` syntax to use the new (`Copy + IntoIterator`) range types.
(unstable, new_range, "CURRENT_RUSTC_VERSION", Some(123741)),
/// Allows `#![no_core]`.
(unstable, no_core, "1.3.0", Some(29639)),
/// Allows the use of `no_sanitize` attribute.