Skip to content

Commit 0c28a81

Browse files
committed
Auto merge of rust-lang#133447 - BoxyUwU:beta, r=BoxyUwU
[beta] Prepare Rust 1.84.0 r? `@ghost`
2 parents f1e0752 + 6f5e494 commit 0c28a81

32 files changed

+100
-100
lines changed

compiler/rustc_feature/src/accepted.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ declare_features! (
225225
/// Allows the use of `if let` expressions.
226226
(accepted, if_let, "1.0.0", None),
227227
/// Rescoping temporaries in `if let` to align with Rust 2024.
228-
(accepted, if_let_rescope, "CURRENT_RUSTC_VERSION", Some(124085)),
228+
(accepted, if_let_rescope, "1.84.0", Some(124085)),
229229
/// Allows top level or-patterns (`p | q`) in `if let` and `while let`.
230230
(accepted, if_while_or_patterns, "1.33.0", Some(48215)),
231231
/// Allows lifetime elision in `impl` headers. For example:
@@ -357,7 +357,7 @@ declare_features! (
357357
(accepted, repr_transparent, "1.28.0", Some(43036)),
358358
/// Allows enums like Result<T, E> to be used across FFI, if T's niche value can
359359
/// be used to describe E or vice-versa.
360-
(accepted, result_ffi_guarantees, "CURRENT_RUSTC_VERSION", Some(110503)),
360+
(accepted, result_ffi_guarantees, "1.84.0", Some(110503)),
361361
/// Allows return-position `impl Trait` in traits.
362362
(accepted, return_position_impl_trait_in_trait, "1.75.0", Some(91611)),
363363
/// Allows code like `let x: &'static u32 = &42` to work (RFC 1414).
@@ -367,7 +367,7 @@ declare_features! (
367367
/// Allows `Self` struct constructor (RFC 2302).
368368
(accepted, self_struct_ctor, "1.32.0", Some(51994)),
369369
/// Shortern the tail expression lifetime
370-
(accepted, shorter_tail_lifetimes, "CURRENT_RUSTC_VERSION", Some(123739)),
370+
(accepted, shorter_tail_lifetimes, "1.84.0", Some(123739)),
371371
/// Allows using subslice patterns, `[a, .., b]` and `[a, xs @ .., b]`.
372372
(accepted, slice_patterns, "1.42.0", Some(62254)),
373373
/// Allows use of `&foo[a..b]` as a slicing syntax.

compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ declare_features! (
101101
/// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
102102
(removed, dropck_parametricity, "1.38.0", Some(28498), None),
103103
/// Uses generic effect parameters for ~const bounds
104-
(removed, effects, "CURRENT_RUSTC_VERSION", Some(102090),
104+
(removed, effects, "1.84.0", Some(102090),
105105
Some("removed, redundant with `#![feature(const_trait_impl)]`")),
106106
/// Allows defining `existential type`s.
107107
(removed, existential_type, "1.38.0", Some(63063),

compiler/rustc_feature/src/unstable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ declare_features! (
338338
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
339339
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
340340
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
341-
(unstable, sparc_target_feature, "CURRENT_RUSTC_VERSION", Some(132783)),
341+
(unstable, sparc_target_feature, "1.84.0", Some(132783)),
342342
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
343343
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
344344
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
@@ -532,7 +532,7 @@ declare_features! (
532532
/// Allows `#[marker]` on certain traits allowing overlapping implementations.
533533
(unstable, marker_trait_attr, "1.30.0", Some(29864)),
534534
/// Enables the generic const args MVP (only bare paths, not arbitrary computation).
535-
(incomplete, min_generic_const_args, "CURRENT_RUSTC_VERSION", Some(132980)),
535+
(incomplete, min_generic_const_args, "1.84.0", Some(132980)),
536536
/// A minimal, sound subset of specialization intended to be used by the
537537
/// standard library until the soundness issues with specialization
538538
/// are fixed.

library/alloc/src/boxed/convert.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl<T: Clone> From<&[T]> for Box<[T]> {
110110
}
111111

112112
#[cfg(not(no_global_oom_handling))]
113-
#[stable(feature = "box_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
113+
#[stable(feature = "box_from_mut_slice", since = "1.84.0")]
114114
impl<T: Clone> From<&mut [T]> for Box<[T]> {
115115
/// Converts a `&mut [T]` into a `Box<[T]>`
116116
///
@@ -171,7 +171,7 @@ impl From<&str> for Box<str> {
171171
}
172172

173173
#[cfg(not(no_global_oom_handling))]
174-
#[stable(feature = "box_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
174+
#[stable(feature = "box_from_mut_slice", since = "1.84.0")]
175175
impl From<&mut str> for Box<str> {
176176
/// Converts a `&mut str` into a `Box<str>`
177177
///

library/alloc/src/ffi/c_str.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ impl From<&CStr> for Box<CStr> {
773773
}
774774

775775
#[cfg(not(test))]
776-
#[stable(feature = "box_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
776+
#[stable(feature = "box_from_mut_slice", since = "1.84.0")]
777777
impl From<&mut CStr> for Box<CStr> {
778778
/// Converts a `&mut CStr` into a `Box<CStr>`,
779779
/// by copying the contents into a newly allocated [`Box`].
@@ -921,7 +921,7 @@ impl From<&CStr> for Arc<CStr> {
921921
}
922922

923923
#[cfg(target_has_atomic = "ptr")]
924-
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
924+
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
925925
impl From<&mut CStr> for Arc<CStr> {
926926
/// Converts a `&mut CStr` into a `Arc<CStr>`,
927927
/// by copying the contents into a newly allocated [`Arc`].
@@ -953,7 +953,7 @@ impl From<&CStr> for Rc<CStr> {
953953
}
954954
}
955955

956-
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
956+
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
957957
impl From<&mut CStr> for Rc<CStr> {
958958
/// Converts a `&mut CStr` into a `Rc<CStr>`,
959959
/// by copying the contents into a newly allocated [`Rc`].

library/alloc/src/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2659,7 +2659,7 @@ impl<T: Clone> From<&[T]> for Rc<[T]> {
26592659
}
26602660

26612661
#[cfg(not(no_global_oom_handling))]
2662-
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
2662+
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
26632663
impl<T: Clone> From<&mut [T]> for Rc<[T]> {
26642664
/// Allocates a reference-counted slice and fills it by cloning `v`'s items.
26652665
///
@@ -2698,7 +2698,7 @@ impl From<&str> for Rc<str> {
26982698
}
26992699

27002700
#[cfg(not(no_global_oom_handling))]
2701-
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
2701+
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
27022702
impl From<&mut str> for Rc<str> {
27032703
/// Allocates a reference-counted string slice and copies `v` into it.
27042704
///

library/alloc/src/sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3618,7 +3618,7 @@ impl<T: Clone> From<&[T]> for Arc<[T]> {
36183618
}
36193619

36203620
#[cfg(not(no_global_oom_handling))]
3621-
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
3621+
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
36223622
impl<T: Clone> From<&mut [T]> for Arc<[T]> {
36233623
/// Allocates a reference-counted slice and fills it by cloning `v`'s items.
36243624
///
@@ -3657,7 +3657,7 @@ impl From<&str> for Arc<str> {
36573657
}
36583658

36593659
#[cfg(not(no_global_oom_handling))]
3660-
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
3660+
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
36613661
impl From<&mut str> for Arc<str> {
36623662
/// Allocates a reference-counted `str` and copies `v` into it.
36633663
///

library/core/src/cell.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2133,8 +2133,8 @@ impl<T: ?Sized> UnsafeCell<T> {
21332133
/// assert_eq!(*uc.get_mut(), 41);
21342134
/// ```
21352135
#[inline(always)]
2136-
#[stable(feature = "unsafe_cell_from_mut", since = "CURRENT_RUSTC_VERSION")]
2137-
#[rustc_const_stable(feature = "unsafe_cell_from_mut", since = "CURRENT_RUSTC_VERSION")]
2136+
#[stable(feature = "unsafe_cell_from_mut", since = "1.84.0")]
2137+
#[rustc_const_stable(feature = "unsafe_cell_from_mut", since = "1.84.0")]
21382138
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
21392139
pub const fn from_mut(value: &mut T) -> &mut UnsafeCell<T> {
21402140
// SAFETY: `UnsafeCell<T>` has the same memory layout as `T` due to #[repr(transparent)].

library/core/src/char/methods.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ impl char {
729729
/// '𝕊'.encode_utf16(&mut b);
730730
/// ```
731731
#[stable(feature = "unicode_encode_char", since = "1.15.0")]
732-
#[rustc_const_stable(feature = "const_char_encode_utf16", since = "CURRENT_RUSTC_VERSION")]
732+
#[rustc_const_stable(feature = "const_char_encode_utf16", since = "1.84.0")]
733733
#[inline]
734734
pub const fn encode_utf16(self, dst: &mut [u16]) -> &mut [u16] {
735735
encode_utf16_raw(self as u32, dst)
@@ -1299,7 +1299,7 @@ impl char {
12991299
///
13001300
/// [`to_ascii_uppercase()`]: #method.to_ascii_uppercase
13011301
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
1302-
#[rustc_const_stable(feature = "const_make_ascii", since = "CURRENT_RUSTC_VERSION")]
1302+
#[rustc_const_stable(feature = "const_make_ascii", since = "1.84.0")]
13031303
#[inline]
13041304
pub const fn make_ascii_uppercase(&mut self) {
13051305
*self = self.to_ascii_uppercase();
@@ -1325,7 +1325,7 @@ impl char {
13251325
///
13261326
/// [`to_ascii_lowercase()`]: #method.to_ascii_lowercase
13271327
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
1328-
#[rustc_const_stable(feature = "const_make_ascii", since = "CURRENT_RUSTC_VERSION")]
1328+
#[rustc_const_stable(feature = "const_make_ascii", since = "1.84.0")]
13291329
#[inline]
13301330
pub const fn make_ascii_lowercase(&mut self) {
13311331
*self = self.to_ascii_lowercase();
@@ -1838,7 +1838,7 @@ pub const fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> &mut [u8] {
18381838
#[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
18391839
#[cfg_attr(
18401840
bootstrap,
1841-
rustc_const_stable(feature = "const_char_encode_utf16", since = "CURRENT_RUSTC_VERSION")
1841+
rustc_const_stable(feature = "const_char_encode_utf16", since = "1.84.0")
18421842
)]
18431843
#[doc(hidden)]
18441844
#[inline]

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ impl<'a> Arguments<'a> {
438438
/// assert_eq!(format_args!("{:?}", std::env::current_dir()).as_str(), None);
439439
/// ```
440440
#[stable(feature = "fmt_as_str", since = "1.52.0")]
441-
#[rustc_const_stable(feature = "const_arguments_as_str", since = "CURRENT_RUSTC_VERSION")]
441+
#[rustc_const_stable(feature = "const_arguments_as_str", since = "1.84.0")]
442442
#[must_use]
443443
#[inline]
444444
pub const fn as_str(&self) -> Option<&'static str> {

library/core/src/intrinsics/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ pub const fn cold_path() {}
14941494
/// This intrinsic does not have a stable counterpart.
14951495
#[cfg_attr(
14961496
bootstrap,
1497-
rustc_const_stable(feature = "const_likely", since = "CURRENT_RUSTC_VERSION")
1497+
rustc_const_stable(feature = "const_likely", since = "1.84.0")
14981498
)]
14991499
#[unstable(feature = "core_intrinsics", issue = "none")]
15001500
#[rustc_nounwind]
@@ -1526,7 +1526,7 @@ pub const fn likely(b: bool) -> bool {
15261526
/// This intrinsic does not have a stable counterpart.
15271527
#[cfg_attr(
15281528
bootstrap,
1529-
rustc_const_stable(feature = "const_likely", since = "CURRENT_RUSTC_VERSION")
1529+
rustc_const_stable(feature = "const_likely", since = "1.84.0")
15301530
)]
15311531
#[unstable(feature = "core_intrinsics", issue = "none")]
15321532
#[rustc_nounwind]
@@ -3629,7 +3629,7 @@ pub(crate) macro const_eval_select {
36293629
/// ```
36303630
#[cfg_attr(
36313631
bootstrap,
3632-
rustc_const_stable(feature = "const_is_val_statically_known", since = "CURRENT_RUSTC_VERSION")
3632+
rustc_const_stable(feature = "const_is_val_statically_known", since = "1.84.0")
36333633
)]
36343634
#[cfg_attr(not(bootstrap), rustc_const_stable_indirect)]
36353635
#[rustc_nounwind]

library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ impl<T> MaybeUninit<T> {
909909
#[stable(feature = "maybe_uninit_ref", since = "1.55.0")]
910910
#[rustc_const_stable(
911911
feature = "const_maybe_uninit_assume_init",
912-
since = "CURRENT_RUSTC_VERSION"
912+
since = "1.84.0"
913913
)]
914914
#[inline(always)]
915915
pub const unsafe fn assume_init_mut(&mut self) -> &mut T {

library/core/src/net/ip_addr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1601,8 +1601,8 @@ impl Ipv6Addr {
16011601
/// ```
16021602
#[must_use]
16031603
#[inline]
1604-
#[stable(feature = "ipv6_is_unique_local", since = "CURRENT_RUSTC_VERSION")]
1605-
#[rustc_const_stable(feature = "ipv6_is_unique_local", since = "CURRENT_RUSTC_VERSION")]
1604+
#[stable(feature = "ipv6_is_unique_local", since = "1.84.0")]
1605+
#[rustc_const_stable(feature = "ipv6_is_unique_local", since = "1.84.0")]
16061606
pub const fn is_unique_local(&self) -> bool {
16071607
(self.segments()[0] & 0xfe00) == 0xfc00
16081608
}
@@ -1679,8 +1679,8 @@ impl Ipv6Addr {
16791679
/// ```
16801680
#[must_use]
16811681
#[inline]
1682-
#[stable(feature = "ipv6_is_unique_local", since = "CURRENT_RUSTC_VERSION")]
1683-
#[rustc_const_stable(feature = "ipv6_is_unique_local", since = "CURRENT_RUSTC_VERSION")]
1682+
#[stable(feature = "ipv6_is_unique_local", since = "1.84.0")]
1683+
#[rustc_const_stable(feature = "ipv6_is_unique_local", since = "1.84.0")]
16841684
pub const fn is_unicast_link_local(&self) -> bool {
16851685
(self.segments()[0] & 0xffc0) == 0xfe80
16861686
}

library/core/src/num/int_macros.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1613,8 +1613,8 @@ macro_rules! int_impl {
16131613
/// ```
16141614
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_isqrt(), Some(3));")]
16151615
/// ```
1616-
#[stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
1617-
#[rustc_const_stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
1616+
#[stable(feature = "isqrt", since = "1.84.0")]
1617+
#[rustc_const_stable(feature = "isqrt", since = "1.84.0")]
16181618
#[must_use = "this returns the result of the operation, \
16191619
without modifying the original"]
16201620
#[inline]
@@ -2859,8 +2859,8 @@ macro_rules! int_impl {
28592859
/// ```
28602860
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
28612861
/// ```
2862-
#[stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
2863-
#[rustc_const_stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
2862+
#[stable(feature = "isqrt", since = "1.84.0")]
2863+
#[rustc_const_stable(feature = "isqrt", since = "1.84.0")]
28642864
#[must_use = "this returns the result of the operation, \
28652865
without modifying the original"]
28662866
#[inline]

library/core/src/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ impl u8 {
677677
///
678678
/// [`to_ascii_uppercase`]: Self::to_ascii_uppercase
679679
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
680-
#[rustc_const_stable(feature = "const_make_ascii", since = "CURRENT_RUSTC_VERSION")]
680+
#[rustc_const_stable(feature = "const_make_ascii", since = "1.84.0")]
681681
#[inline]
682682
pub const fn make_ascii_uppercase(&mut self) {
683683
*self = self.to_ascii_uppercase();
@@ -703,7 +703,7 @@ impl u8 {
703703
///
704704
/// [`to_ascii_lowercase`]: Self::to_ascii_lowercase
705705
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
706-
#[rustc_const_stable(feature = "const_make_ascii", since = "CURRENT_RUSTC_VERSION")]
706+
#[rustc_const_stable(feature = "const_make_ascii", since = "1.84.0")]
707707
#[inline]
708708
pub const fn make_ascii_lowercase(&mut self) {
709709
*self = self.to_ascii_lowercase();

library/core/src/num/nonzero.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ impl_nonzero_fmt! {
139139
LowerHex
140140
#[stable(feature = "nonzero", since = "1.28.0")]
141141
UpperHex
142-
#[stable(feature = "nonzero_fmt_exp", since = "CURRENT_RUSTC_VERSION")]
142+
#[stable(feature = "nonzero_fmt_exp", since = "1.84.0")]
143143
LowerExp
144-
#[stable(feature = "nonzero_fmt_exp", since = "CURRENT_RUSTC_VERSION")]
144+
#[stable(feature = "nonzero_fmt_exp", since = "1.84.0")]
145145
UpperExp
146146
}
147147

@@ -1587,8 +1587,8 @@ macro_rules! nonzero_integer_signedness_dependent_methods {
15871587
/// # Some(())
15881588
/// # }
15891589
/// ```
1590-
#[stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
1591-
#[rustc_const_stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
1590+
#[stable(feature = "isqrt", since = "1.84.0")]
1591+
#[rustc_const_stable(feature = "isqrt", since = "1.84.0")]
15921592
#[must_use = "this returns the result of the operation, \
15931593
without modifying the original"]
15941594
#[inline]

library/core/src/num/uint_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2838,8 +2838,8 @@ macro_rules! uint_impl {
28382838
/// ```
28392839
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
28402840
/// ```
2841-
#[stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
2842-
#[rustc_const_stable(feature = "isqrt", since = "CURRENT_RUSTC_VERSION")]
2841+
#[stable(feature = "isqrt", since = "1.84.0")]
2842+
#[rustc_const_stable(feature = "isqrt", since = "1.84.0")]
28432843
#[must_use = "this returns the result of the operation, \
28442844
without modifying the original"]
28452845
#[inline]

library/core/src/option.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ impl<T> Option<T> {
738738
#[inline]
739739
#[must_use]
740740
#[stable(feature = "pin", since = "1.33.0")]
741-
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
741+
#[rustc_const_stable(feature = "const_option_ext", since = "1.84.0")]
742742
pub const fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&T>> {
743743
// FIXME(const-hack): use `map` once that is possible
744744
match Pin::get_ref(self).as_ref() {
@@ -755,7 +755,7 @@ impl<T> Option<T> {
755755
#[inline]
756756
#[must_use]
757757
#[stable(feature = "pin", since = "1.33.0")]
758-
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
758+
#[rustc_const_stable(feature = "const_option_ext", since = "1.84.0")]
759759
pub const fn as_pin_mut(self: Pin<&mut Self>) -> Option<Pin<&mut T>> {
760760
// SAFETY: `get_unchecked_mut` is never used to move the `Option` inside `self`.
761761
// `x` is guaranteed to be pinned because it comes from `self` which is pinned.
@@ -802,7 +802,7 @@ impl<T> Option<T> {
802802
#[inline]
803803
#[must_use]
804804
#[stable(feature = "option_as_slice", since = "1.75.0")]
805-
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
805+
#[rustc_const_stable(feature = "const_option_ext", since = "1.84.0")]
806806
pub const fn as_slice(&self) -> &[T] {
807807
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
808808
// to the payload, with a length of 1, so this is equivalent to
@@ -857,7 +857,7 @@ impl<T> Option<T> {
857857
#[inline]
858858
#[must_use]
859859
#[stable(feature = "option_as_slice", since = "1.75.0")]
860-
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
860+
#[rustc_const_stable(feature = "const_option_ext", since = "1.84.0")]
861861
pub const fn as_mut_slice(&mut self) -> &mut [T] {
862862
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
863863
// to the payload, with a length of 1, so this is equivalent to

library/core/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub macro const_panic {
208208
#[rustc_allow_const_fn_unstable(const_eval_select)]
209209
#[inline(always)] // inline the wrapper
210210
#[track_caller]
211-
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_panic", since = "CURRENT_RUSTC_VERSION"))]
211+
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_panic", since = "1.84.0"))]
212212
const fn do_panic($($arg: $ty),*) -> ! {
213213
$crate::intrinsics::const_eval_select!(
214214
@capture { $($arg: $ty = $arg),* } -> !:

library/core/src/panic/panic_info.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl<'a> PanicMessage<'a> {
165165
///
166166
/// See [`fmt::Arguments::as_str`] for details.
167167
#[stable(feature = "panic_info_message", since = "1.81.0")]
168-
#[rustc_const_stable(feature = "const_arguments_as_str", since = "CURRENT_RUSTC_VERSION")]
168+
#[rustc_const_stable(feature = "const_arguments_as_str", since = "1.84.0")]
169169
#[must_use]
170170
#[inline]
171171
pub const fn as_str(&self) -> Option<&'static str> {

0 commit comments

Comments
 (0)