Skip to content

Commit 1bffa23

Browse files
committed
Auto merge of #146545 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] Initial cut for 1.91 beta https://forge.rust-lang.org/release/process.html#beta-pr Also backports: - Only run Cranelift dist test on nightly #146582 r? `@Mark-Simulacrum`
2 parents a015919 + 8499d50 commit 1bffa23

File tree

31 files changed

+140
-139
lines changed

31 files changed

+140
-139
lines changed

compiler/rustc_feature/src/accepted.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ declare_features! (
205205
(accepted, extended_key_value_attributes, "1.54.0", Some(78835)),
206206
/// Allows using `aapcs`, `efiapi`, `sysv64` and `win64` as calling conventions
207207
/// for functions with varargs.
208-
(accepted, extended_varargs_abi_support, "CURRENT_RUSTC_VERSION", Some(100189)),
208+
(accepted, extended_varargs_abi_support, "1.91.0", Some(100189)),
209209
/// Allows resolving absolute paths as paths from other crates.
210210
(accepted, extern_absolute_paths, "1.30.0", Some(44660)),
211211
/// Allows `extern crate foo as bar;`. This puts `bar` into extern prelude.
@@ -400,7 +400,7 @@ declare_features! (
400400
/// Allows use of `&foo[a..b]` as a slicing syntax.
401401
(accepted, slicing_syntax, "1.0.0", None),
402402
/// Allows use of `sse4a` target feature.
403-
(accepted, sse4a_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
403+
(accepted, sse4a_target_feature, "1.91.0", Some(44839)),
404404
/// Allows elision of `'static` lifetimes in `static`s and `const`s.
405405
(accepted, static_in_const, "1.17.0", Some(35897)),
406406
/// Allows the definition recursive static items.
@@ -414,7 +414,7 @@ declare_features! (
414414
/// Allows the use of `#[target_feature]` on safe functions.
415415
(accepted, target_feature_11, "1.86.0", Some(69098)),
416416
/// Allows use of `tbm` target feature.
417-
(accepted, tbm_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
417+
(accepted, tbm_target_feature, "1.91.0", Some(44839)),
418418
/// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
419419
(accepted, termination_trait, "1.26.0", Some(43301)),
420420
/// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).

compiler/rustc_feature/src/removed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ declare_features! (
192192
(removed, no_debug, "1.43.0", Some(29721), Some("removed due to lack of demand"), 69667),
193193
// Allows the use of `no_sanitize` attribute.
194194
/// The feature was renamed to `sanitize` and the attribute to `#[sanitize(xyz = "on|off")]`
195-
(removed, no_sanitize, "CURRENT_RUSTC_VERSION", Some(39699), Some(r#"renamed to sanitize(xyz = "on|off")"#), 142681),
195+
(removed, no_sanitize, "1.91.0", Some(39699), Some(r#"renamed to sanitize(xyz = "on|off")"#), 142681),
196196
/// Note: this feature was previously recorded in a separate
197197
/// `STABLE_REMOVED` list because it, uniquely, was once stable but was
198198
/// then removed. But there was no utility storing it separately, so now
@@ -203,7 +203,7 @@ declare_features! (
203203
(removed, object_safe_for_dispatch, "1.83.0", Some(43561),
204204
Some("renamed to `dyn_compatible_for_dispatch`"), 131511),
205205
/// Allows using `#[omit_gdb_pretty_printer_section]`.
206-
(removed, omit_gdb_pretty_printer_section, "CURRENT_RUSTC_VERSION", None, None, 144738),
206+
(removed, omit_gdb_pretty_printer_section, "1.91.0", None, None, 144738),
207207
/// Allows using `#[on_unimplemented(..)]` on traits.
208208
/// (Moved to `rustc_attrs`.)
209209
(removed, on_unimplemented, "1.40.0", None, None, 65794),

compiler/rustc_feature/src/unstable.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ declare_features! (
327327
(unstable, m68k_target_feature, "1.85.0", Some(134328)),
328328
(unstable, mips_target_feature, "1.27.0", Some(44839)),
329329
(unstable, movrs_target_feature, "1.88.0", Some(137976)),
330-
(unstable, nvptx_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
330+
(unstable, nvptx_target_feature, "1.91.0", Some(44839)),
331331
(unstable, powerpc_target_feature, "1.27.0", Some(44839)),
332332
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
333333
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
@@ -471,7 +471,7 @@ declare_features! (
471471
/// Allows deref patterns.
472472
(incomplete, deref_patterns, "1.79.0", Some(87121)),
473473
/// Allows deriving the From trait on single-field structs.
474-
(unstable, derive_from, "CURRENT_RUSTC_VERSION", Some(144889)),
474+
(unstable, derive_from, "1.91.0", Some(144889)),
475475
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
476476
(unstable, doc_auto_cfg, "1.58.0", Some(43781)),
477477
/// Allows `#[doc(cfg(...))]`.
@@ -481,7 +481,7 @@ declare_features! (
481481
/// Allows `#[doc(masked)]`.
482482
(unstable, doc_masked, "1.21.0", Some(44027)),
483483
/// Allows features to allow target_feature to better interact with traits.
484-
(incomplete, effective_target_features, "CURRENT_RUSTC_VERSION", Some(143352)),
484+
(incomplete, effective_target_features, "1.91.0", Some(143352)),
485485
/// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
486486
(incomplete, ergonomic_clones, "1.87.0", Some(132290)),
487487
/// Allows exhaustive pattern matching on types that contain uninhabited types.
@@ -554,9 +554,9 @@ declare_features! (
554554
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
555555
(incomplete, loop_match, "1.90.0", Some(132306)),
556556
/// Allow `macro_rules!` attribute rules
557-
(unstable, macro_attr, "CURRENT_RUSTC_VERSION", Some(83527)),
557+
(unstable, macro_attr, "1.91.0", Some(83527)),
558558
/// Allow `macro_rules!` derive rules
559-
(unstable, macro_derive, "CURRENT_RUSTC_VERSION", Some(143549)),
559+
(unstable, macro_derive, "1.91.0", Some(143549)),
560560
/// Give access to additional metadata about declarative macro meta-variables.
561561
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
562562
/// Provides a way to concatenate identifiers using metavariable expressions.
@@ -613,7 +613,7 @@ declare_features! (
613613
(unstable, proc_macro_hygiene, "1.30.0", Some(54727)),
614614
/// Allows the use of raw-dylibs on ELF platforms
615615
(incomplete, raw_dylib_elf, "1.87.0", Some(135694)),
616-
(unstable, reborrow, "CURRENT_RUSTC_VERSION", Some(145612)),
616+
(unstable, reborrow, "1.91.0", Some(145612)),
617617
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.
618618
(incomplete, ref_pat_eat_one_layer_2024, "1.79.0", Some(123076)),
619619
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024—structural variant
@@ -627,13 +627,13 @@ declare_features! (
627627
/// Allows `extern "rust-cold"`.
628628
(unstable, rust_cold_cc, "1.63.0", Some(97544)),
629629
/// Allows the use of the `sanitize` attribute.
630-
(unstable, sanitize, "CURRENT_RUSTC_VERSION", Some(39699)),
630+
(unstable, sanitize, "1.91.0", Some(39699)),
631631
/// Allows the use of SIMD types in functions declared in `extern` blocks.
632632
(unstable, simd_ffi, "1.0.0", Some(27731)),
633633
/// Allows specialization of implementations (RFC 1210).
634634
(incomplete, specialization, "1.7.0", Some(31844)),
635635
/// Allows using `#[rustc_align_static(...)]` on static items.
636-
(unstable, static_align, "CURRENT_RUSTC_VERSION", Some(146177)),
636+
(unstable, static_align, "1.91.0", Some(146177)),
637637
/// Allows attributes on expressions and non-item statements.
638638
(unstable, stmt_expr_attributes, "1.6.0", Some(15701)),
639639
/// Allows lints part of the strict provenance effort.
@@ -645,7 +645,7 @@ declare_features! (
645645
/// Allows subtrait items to shadow supertrait items.
646646
(unstable, supertrait_item_shadowing, "1.86.0", Some(89151)),
647647
/// Allows the use of target_feature when a function is marked inline(always).
648-
(unstable, target_feature_inline_always, "CURRENT_RUSTC_VERSION", Some(145574)),
648+
(unstable, target_feature_inline_always, "1.91.0", Some(145574)),
649649
/// Allows using `#[thread_local]` on `static` items.
650650
(unstable, thread_local, "1.0.0", Some(29594)),
651651
/// Allows defining `trait X = A + B;` alias items.

library/alloc/src/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ impl Default for Box<str> {
17181718
}
17191719

17201720
#[cfg(not(no_global_oom_handling))]
1721-
#[stable(feature = "pin_default_impls", since = "CURRENT_RUSTC_VERSION")]
1721+
#[stable(feature = "pin_default_impls", since = "1.91.0")]
17221722
impl<T> Default for Pin<Box<T>>
17231723
where
17241724
T: ?Sized,

library/alloc/src/collections/btree/map.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
14491449
/// assert_eq!(low.keys().copied().collect::<Vec<_>>(), [0, 1, 2, 3]);
14501450
/// assert_eq!(high.keys().copied().collect::<Vec<_>>(), [4, 5, 6, 7]);
14511451
/// ```
1452-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1452+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
14531453
pub fn extract_if<F, R>(&mut self, range: R, pred: F) -> ExtractIf<'_, K, V, R, F, A>
14541454
where
14551455
K: Ord,
@@ -1936,7 +1936,7 @@ impl<K, V> Default for Values<'_, K, V> {
19361936
}
19371937

19381938
/// An iterator produced by calling `extract_if` on BTreeMap.
1939-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1939+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
19401940
#[must_use = "iterators are lazy and do nothing unless consumed"]
19411941
pub struct ExtractIf<
19421942
'a,
@@ -1969,7 +1969,7 @@ pub(super) struct ExtractIfInner<'a, K, V, R> {
19691969
range: R,
19701970
}
19711971

1972-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1972+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
19731973
impl<K, V, R, F, A> fmt::Debug for ExtractIf<'_, K, V, R, F, A>
19741974
where
19751975
K: fmt::Debug,
@@ -1981,7 +1981,7 @@ where
19811981
}
19821982
}
19831983

1984-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1984+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
19851985
impl<K, V, R, F, A: Allocator + Clone> Iterator for ExtractIf<'_, K, V, R, F, A>
19861986
where
19871987
K: PartialOrd,
@@ -2055,7 +2055,7 @@ impl<'a, K, V, R> ExtractIfInner<'a, K, V, R> {
20552055
}
20562056
}
20572057

2058-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
2058+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
20592059
impl<K, V, R, F> FusedIterator for ExtractIf<'_, K, V, R, F>
20602060
where
20612061
K: PartialOrd,

library/alloc/src/collections/btree/set.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
12181218
/// assert_eq!(low.into_iter().collect::<Vec<_>>(), [0, 1, 2, 3]);
12191219
/// assert_eq!(high.into_iter().collect::<Vec<_>>(), [4, 5, 6, 7]);
12201220
/// ```
1221-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1221+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
12221222
pub fn extract_if<F, R>(&mut self, range: R, pred: F) -> ExtractIf<'_, T, R, F, A>
12231223
where
12241224
T: Ord,
@@ -1553,7 +1553,7 @@ impl<'a, T, A: Allocator + Clone> IntoIterator for &'a BTreeSet<T, A> {
15531553
}
15541554

15551555
/// An iterator produced by calling `extract_if` on BTreeSet.
1556-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1556+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
15571557
#[must_use = "iterators are lazy and do nothing unless consumed"]
15581558
pub struct ExtractIf<
15591559
'a,
@@ -1568,7 +1568,7 @@ pub struct ExtractIf<
15681568
alloc: A,
15691569
}
15701570

1571-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1571+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
15721572
impl<T, R, F, A> fmt::Debug for ExtractIf<'_, T, R, F, A>
15731573
where
15741574
T: fmt::Debug,
@@ -1581,7 +1581,7 @@ where
15811581
}
15821582
}
15831583

1584-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1584+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
15851585
impl<T, R, F, A: Allocator + Clone> Iterator for ExtractIf<'_, T, R, F, A>
15861586
where
15871587
T: PartialOrd,
@@ -1601,7 +1601,7 @@ where
16011601
}
16021602
}
16031603

1604-
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
1604+
#[stable(feature = "btree_extract_if", since = "1.91.0")]
16051605
impl<T, R, F, A: Allocator + Clone> FusedIterator for ExtractIf<'_, T, R, F, A>
16061606
where
16071607
T: PartialOrd,

library/alloc/src/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ impl<T> Default for Rc<[T]> {
23982398
}
23992399

24002400
#[cfg(not(no_global_oom_handling))]
2401-
#[stable(feature = "pin_default_impls", since = "CURRENT_RUSTC_VERSION")]
2401+
#[stable(feature = "pin_default_impls", since = "1.91.0")]
24022402
impl<T> Default for Pin<Rc<T>>
24032403
where
24042404
T: ?Sized,

library/alloc/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3655,7 +3655,7 @@ impl<T> Default for Arc<[T]> {
36553655
}
36563656

36573657
#[cfg(not(no_global_oom_handling))]
3658-
#[stable(feature = "pin_default_impls", since = "CURRENT_RUSTC_VERSION")]
3658+
#[stable(feature = "pin_default_impls", since = "1.91.0")]
36593659
impl<T> Default for Pin<Arc<T>>
36603660
where
36613661
T: ?Sized,

library/core/src/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ impl TypeId {
774774
/// ```
775775
#[must_use]
776776
#[stable(feature = "rust1", since = "1.0.0")]
777-
#[rustc_const_stable(feature = "const_type_id", since = "CURRENT_RUSTC_VERSION")]
777+
#[rustc_const_stable(feature = "const_type_id", since = "1.91.0")]
778778
pub const fn of<T: ?Sized + 'static>() -> TypeId {
779779
const { intrinsics::type_id::<T>() }
780780
}

library/core/src/array/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub use iter::IntoIter;
4949
/// ```
5050
#[inline]
5151
#[must_use = "cloning is often expensive and is not expected to have side effects"]
52-
#[stable(feature = "array_repeat", since = "CURRENT_RUSTC_VERSION")]
52+
#[stable(feature = "array_repeat", since = "1.91.0")]
5353
pub fn repeat<T: Clone, const N: usize>(val: T) -> [T; N] {
5454
from_trusted_iterator(repeat_n(val, N))
5555
}
@@ -622,7 +622,7 @@ impl<T, const N: usize> [T; N] {
622622
/// assert_eq!(strings.len(), 3);
623623
/// ```
624624
#[stable(feature = "array_methods", since = "1.77.0")]
625-
#[rustc_const_stable(feature = "const_array_each_ref", since = "CURRENT_RUSTC_VERSION")]
625+
#[rustc_const_stable(feature = "const_array_each_ref", since = "1.91.0")]
626626
pub const fn each_ref(&self) -> [&T; N] {
627627
let mut buf = [null::<T>(); N];
628628

@@ -653,7 +653,7 @@ impl<T, const N: usize> [T; N] {
653653
/// assert_eq!(floats, [0.0, 2.7, -1.0]);
654654
/// ```
655655
#[stable(feature = "array_methods", since = "1.77.0")]
656-
#[rustc_const_stable(feature = "const_array_each_ref", since = "CURRENT_RUSTC_VERSION")]
656+
#[rustc_const_stable(feature = "const_array_each_ref", since = "1.91.0")]
657657
pub const fn each_mut(&mut self) -> [&mut T; N] {
658658
let mut buf = [null_mut::<T>(); N];
659659

0 commit comments

Comments
 (0)