diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-11-12 11:45:28 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-11-15 19:40:51 -0500 |
| commit | efe54e24aafc413f3f6251ceeace57b810e4df29 (patch) | |
| tree | 2974b31786ec14813668ef85bb7f397217db22a3 /library/core/src | |
| parent | 6b771f6b5a6c8b03b6322a9c77ac77cb346148f0 (diff) | |
| download | rust-efe54e24aafc413f3f6251ceeace57b810e4df29.tar.gz rust-efe54e24aafc413f3f6251ceeace57b810e4df29.zip | |
Substitute version placeholders
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/char/decode.rs | 2 | ||||
| -rw-r--r-- | library/core/src/intrinsics.rs | 6 | ||||
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 4 | ||||
| -rw-r--r-- | library/core/src/mem/mod.rs | 4 | ||||
| -rw-r--r-- | library/core/src/net/ip_addr.rs | 26 | ||||
| -rw-r--r-- | library/core/src/option.rs | 4 | ||||
| -rw-r--r-- | library/core/src/ptr/const_ptr.rs | 28 | ||||
| -rw-r--r-- | library/core/src/ptr/mut_ptr.rs | 28 | ||||
| -rw-r--r-- | library/core/src/sync/atomic.rs | 6 |
9 files changed, 54 insertions, 54 deletions
diff --git a/library/core/src/char/decode.rs b/library/core/src/char/decode.rs index d76f983d87c..23319fbe5dd 100644 --- a/library/core/src/char/decode.rs +++ b/library/core/src/char/decode.rs @@ -106,7 +106,7 @@ impl<I: Iterator<Item = u16>> Iterator for DecodeUtf16<I> { } } -#[stable(feature = "decode_utf16_fused_iterator", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "decode_utf16_fused_iterator", since = "1.75.0")] impl<I: Iterator<Item = u16> + FusedIterator> FusedIterator for DecodeUtf16<I> {} impl DecodeUtf16Error { diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index f855b2ad483..c5aef67b5df 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -1072,7 +1072,7 @@ extern "rust-intrinsic" { /// zero-initialization: This will statically either panic, or do nothing. /// /// This intrinsic does not have a stable counterpart. - #[rustc_const_stable(feature = "const_assert_type2", since = "CURRENT_RUSTC_VERSION")] + #[rustc_const_stable(feature = "const_assert_type2", since = "1.75.0")] #[rustc_safe_intrinsic] #[rustc_nounwind] pub fn assert_zero_valid<T>(); @@ -1080,7 +1080,7 @@ extern "rust-intrinsic" { /// A guard for `std::mem::uninitialized`. This will statically either panic, or do nothing. /// /// This intrinsic does not have a stable counterpart. - #[rustc_const_stable(feature = "const_assert_type2", since = "CURRENT_RUSTC_VERSION")] + #[rustc_const_stable(feature = "const_assert_type2", since = "1.75.0")] #[rustc_safe_intrinsic] #[rustc_nounwind] pub fn assert_mem_uninitialized_valid<T>(); @@ -2279,7 +2279,7 @@ extern "rust-intrinsic" { /// any safety invariants. /// /// The stabilized version of this intrinsic is [`core::mem::discriminant`]. - #[rustc_const_stable(feature = "const_discriminant", since = "CURRENT_RUSTC_VERSION")] + #[rustc_const_stable(feature = "const_discriminant", since = "1.75.0")] #[rustc_safe_intrinsic] #[rustc_nounwind] pub fn discriminant_value<T>(v: &T) -> <T as DiscriminantKind>::Discriminant; diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index 8a4070ebd96..8a210c195a0 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -398,7 +398,7 @@ impl<T> MaybeUninit<T> { #[rustc_allow_const_fn_unstable(const_mut_refs)] #[rustc_allow_const_fn_unstable(const_ptr_write)] #[rustc_allow_const_fn_unstable(const_maybe_uninit_as_mut_ptr)] - #[rustc_const_stable(feature = "const_maybe_uninit_zeroed", since = "CURRENT_RUSTC_VERSION")] + #[rustc_const_stable(feature = "const_maybe_uninit_zeroed", since = "1.75.0")] pub const fn zeroed() -> MaybeUninit<T> { let mut u = MaybeUninit::<T>::uninit(); // SAFETY: `u.as_mut_ptr()` points to allocated memory. @@ -693,7 +693,7 @@ impl<T> MaybeUninit<T> { #[stable(feature = "maybe_uninit_extra", since = "1.60.0")] #[rustc_const_stable( feature = "const_maybe_uninit_assume_init_read", - since = "CURRENT_RUSTC_VERSION" + since = "1.75.0" )] #[inline(always)] #[track_caller] diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index c964596dd5f..34534ba3b43 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -647,7 +647,7 @@ pub const fn needs_drop<T: ?Sized>() -> bool { #[allow(deprecated)] #[rustc_diagnostic_item = "mem_zeroed"] #[track_caller] -#[rustc_const_stable(feature = "const_mem_zeroed", since = "CURRENT_RUSTC_VERSION")] +#[rustc_const_stable(feature = "const_mem_zeroed", since = "1.75.0")] pub const unsafe fn zeroed<T>() -> T { // SAFETY: the caller must guarantee that an all-zero value is valid for `T`. unsafe { @@ -1208,7 +1208,7 @@ impl<T> fmt::Debug for Discriminant<T> { /// // assert_eq!(0, unsafe { std::mem::transmute::<_, u8>(std::mem::discriminant(&unit_like)) }); /// ``` #[stable(feature = "discriminant_value", since = "1.21.0")] -#[rustc_const_stable(feature = "const_discriminant", since = "CURRENT_RUSTC_VERSION")] +#[rustc_const_stable(feature = "const_discriminant", since = "1.75.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "mem_discriminant")] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const fn discriminant<T>(v: &T) -> Discriminant<T> { diff --git a/library/core/src/net/ip_addr.rs b/library/core/src/net/ip_addr.rs index b7eca9b168a..77f85215d71 100644 --- a/library/core/src/net/ip_addr.rs +++ b/library/core/src/net/ip_addr.rs @@ -425,8 +425,8 @@ impl IpAddr { #[inline] #[must_use = "this returns the result of the operation, \ without modifying the original"] - #[stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "ip_to_canonical", since = "1.75.0")] + #[rustc_const_stable(feature = "ip_to_canonical", since = "1.75.0")] pub const fn to_canonical(&self) -> IpAddr { match self { IpAddr::V4(_) => *self, @@ -1757,7 +1757,7 @@ impl Ipv6Addr { #[must_use = "this returns the result of the operation, \ without modifying the original"] #[stable(feature = "ipv6_to_ipv4_mapped", since = "1.63.0")] - #[rustc_const_stable(feature = "const_ipv6_to_ipv4_mapped", since = "CURRENT_RUSTC_VERSION")] + #[rustc_const_stable(feature = "const_ipv6_to_ipv4_mapped", since = "1.75.0")] pub const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr> { match self.octets() { [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, a, b, c, d] => { @@ -1825,8 +1825,8 @@ impl Ipv6Addr { #[inline] #[must_use = "this returns the result of the operation, \ without modifying the original"] - #[stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "ip_to_canonical", since = "1.75.0")] + #[rustc_const_stable(feature = "ip_to_canonical", since = "1.75.0")] pub const fn to_canonical(&self) -> IpAddr { if let Some(mapped) = self.to_ipv4_mapped() { return IpAddr::V4(mapped); @@ -2128,7 +2128,7 @@ impl From<[u16; 8]> for IpAddr { } } -#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ip_bitops", since = "1.75.0")] impl Not for Ipv4Addr { type Output = Ipv4Addr; @@ -2141,7 +2141,7 @@ impl Not for Ipv4Addr { } } -#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ip_bitops", since = "1.75.0")] impl Not for &'_ Ipv4Addr { type Output = Ipv4Addr; @@ -2151,7 +2151,7 @@ impl Not for &'_ Ipv4Addr { } } -#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ip_bitops", since = "1.75.0")] impl Not for Ipv6Addr { type Output = Ipv6Addr; @@ -2164,7 +2164,7 @@ impl Not for Ipv6Addr { } } -#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "ip_bitops", since = "1.75.0")] impl Not for &'_ Ipv6Addr { type Output = Ipv6Addr; @@ -2246,13 +2246,13 @@ macro_rules! bitop_impls { } bitop_impls! { - #[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "ip_bitops", since = "1.75.0")] impl (BitAnd, BitAndAssign) for Ipv4Addr = (bitand, bitand_assign); - #[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "ip_bitops", since = "1.75.0")] impl (BitOr, BitOrAssign) for Ipv4Addr = (bitor, bitor_assign); - #[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "ip_bitops", since = "1.75.0")] impl (BitAnd, BitAndAssign) for Ipv6Addr = (bitand, bitand_assign); - #[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "ip_bitops", since = "1.75.0")] impl (BitOr, BitOrAssign) for Ipv6Addr = (bitor, bitor_assign); } diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 2303f289cdd..4ddcc49c989 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -765,7 +765,7 @@ impl<T> Option<T> { /// ``` #[inline] #[must_use] - #[stable(feature = "option_as_slice", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "option_as_slice", since = "1.75.0")] pub fn as_slice(&self) -> &[T] { // SAFETY: When the `Option` is `Some`, we're using the actual pointer // to the payload, with a length of 1, so this is equivalent to @@ -819,7 +819,7 @@ impl<T> Option<T> { /// ``` #[inline] #[must_use] - #[stable(feature = "option_as_slice", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "option_as_slice", since = "1.75.0")] pub fn as_mut_slice(&mut self) -> &mut [T] { // SAFETY: When the `Option` is `Some`, we're using the actual pointer // to the payload, with a length of 1, so this is equivalent to diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 97f936fbd9e..36685f756d0 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -480,8 +480,8 @@ impl<T: ?Sized> *const T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_offset(self, count: isize) -> Self { @@ -561,8 +561,8 @@ impl<T: ?Sized> *const T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] pub const fn wrapping_byte_offset(self, count: isize) -> Self { self.cast::<u8>().wrapping_offset(count).with_metadata_of(self) @@ -728,8 +728,8 @@ impl<T: ?Sized> *const T { /// For non-`Sized` pointees this operation considers only the data pointers, /// ignoring the metadata. #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_offset_from<U: ?Sized>(self, origin: *const U) -> isize { @@ -955,8 +955,8 @@ impl<T: ?Sized> *const T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_add(self, count: usize) -> Self { @@ -1049,8 +1049,8 @@ impl<T: ?Sized> *const T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_sub(self, count: usize) -> Self { @@ -1130,8 +1130,8 @@ impl<T: ?Sized> *const T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] pub const fn wrapping_byte_add(self, count: usize) -> Self { self.cast::<u8>().wrapping_add(count).with_metadata_of(self) @@ -1209,8 +1209,8 @@ impl<T: ?Sized> *const T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] pub const fn wrapping_byte_sub(self, count: usize) -> Self { self.cast::<u8>().wrapping_sub(count).with_metadata_of(self) diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index 64695d63f0c..bc362fb627f 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -495,8 +495,8 @@ impl<T: ?Sized> *mut T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_offset(self, count: isize) -> Self { @@ -575,8 +575,8 @@ impl<T: ?Sized> *mut T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] pub const fn wrapping_byte_offset(self, count: isize) -> Self { self.cast::<u8>().wrapping_offset(count).with_metadata_of(self) @@ -900,8 +900,8 @@ impl<T: ?Sized> *mut T { /// For non-`Sized` pointees this operation considers only the data pointers, /// ignoring the metadata. #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_offset_from<U: ?Sized>(self, origin: *const U) -> isize { @@ -1056,8 +1056,8 @@ impl<T: ?Sized> *mut T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_add(self, count: usize) -> Self { @@ -1150,8 +1150,8 @@ impl<T: ?Sized> *mut T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub const unsafe fn byte_sub(self, count: usize) -> Self { @@ -1231,8 +1231,8 @@ impl<T: ?Sized> *mut T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] pub const fn wrapping_byte_add(self, count: usize) -> Self { self.cast::<u8>().wrapping_add(count).with_metadata_of(self) @@ -1310,8 +1310,8 @@ impl<T: ?Sized> *mut T { /// leaving the metadata untouched. #[must_use] #[inline(always)] - #[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] - #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "pointer_byte_offsets", since = "1.75.0")] + #[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")] #[rustc_allow_const_fn_unstable(set_ptr_value)] pub const fn wrapping_byte_sub(self, count: usize) -> Self { self.cast::<u8>().wrapping_sub(count).with_metadata_of(self) diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index f83f60857a2..5f1f41e6865 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -444,7 +444,7 @@ impl AtomicBool { /// /// [valid]: crate::ptr#safety /// [Memory model for atomic accesses]: self#memory-model-for-atomic-accesses - #[stable(feature = "atomic_from_ptr", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "atomic_from_ptr", since = "1.75.0")] #[rustc_const_unstable(feature = "const_atomic_from_ptr", issue = "108652")] pub const unsafe fn from_ptr<'a>(ptr: *mut bool) -> &'a AtomicBool { // SAFETY: guaranteed by the caller @@ -1242,7 +1242,7 @@ impl<T> AtomicPtr<T> { /// /// [valid]: crate::ptr#safety /// [Memory model for atomic accesses]: self#memory-model-for-atomic-accesses - #[stable(feature = "atomic_from_ptr", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "atomic_from_ptr", since = "1.75.0")] #[rustc_const_unstable(feature = "const_atomic_from_ptr", issue = "108652")] pub const unsafe fn from_ptr<'a>(ptr: *mut *mut T) -> &'a AtomicPtr<T> { // SAFETY: guaranteed by the caller @@ -2218,7 +2218,7 @@ macro_rules! atomic_int { /// /// [valid]: crate::ptr#safety /// [Memory model for atomic accesses]: self#memory-model-for-atomic-accesses - #[stable(feature = "atomic_from_ptr", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "atomic_from_ptr", since = "1.75.0")] #[rustc_const_unstable(feature = "const_atomic_from_ptr", issue = "108652")] pub const unsafe fn from_ptr<'a>(ptr: *mut $int_type) -> &'a $atomic_type { // SAFETY: guaranteed by the caller |
