Skip to content

Commit efe54e2

Browse files
Substitute version placeholders
1 parent 6b771f6 commit efe54e2

File tree

19 files changed

+80
-80
lines changed

19 files changed

+80
-80
lines changed

compiler/rustc_feature/src/accepted.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ declare_features! (
6565
/// Allows free and inherent `async fn`s, `async` blocks, and `<expr>.await` expressions.
6666
(accepted, async_await, "1.39.0", Some(50547), None),
6767
/// Allows async functions to be declared, implemented, and used in traits.
68-
(accepted, async_fn_in_trait, "CURRENT_RUSTC_VERSION", Some(91611), None),
68+
(accepted, async_fn_in_trait, "1.75.0", Some(91611), None),
6969
/// Allows all literals in attribute lists and values of key-value pairs.
7070
(accepted, attr_literals, "1.30.0", Some(34981), None),
7171
/// Allows overloading augmented assignment operations like `a += b`.
@@ -306,7 +306,7 @@ declare_features! (
306306
/// Allows `#[repr(transparent)]` attribute on newtype structs.
307307
(accepted, repr_transparent, "1.28.0", Some(43036), None),
308308
/// Allows return-position `impl Trait` in traits.
309-
(accepted, return_position_impl_trait_in_trait, "CURRENT_RUSTC_VERSION", Some(91611), None),
309+
(accepted, return_position_impl_trait_in_trait, "1.75.0", Some(91611), None),
310310
/// Allows code like `let x: &'static u32 = &42` to work (RFC 1414).
311311
(accepted, rvalue_static_promotion, "1.21.0", Some(38865), None),
312312
/// Allows `Self` in type definitions (RFC 2300).

compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ declare_features! (
153153
(removed, panic_implementation, "1.28.0", Some(44489), None,
154154
Some("subsumed by `#[panic_handler]`")),
155155
/// Allows using `#![plugin(myplugin)]`.
156-
(removed, plugin, "CURRENT_RUSTC_VERSION", Some(29597), None,
156+
(removed, plugin, "1.75.0", Some(29597), None,
157157
Some("plugins are no longer supported")),
158158
/// Allows using `#[plugin_registrar]` on functions.
159159
(removed, plugin_registrar, "1.54.0", Some(29597), None,

compiler/rustc_feature/src/unstable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ declare_features! (
457457
/// Allows using `#[repr(align(...))]` on function items
458458
(unstable, fn_align, "1.53.0", Some(82232), None),
459459
/// Allows defining gen blocks and `gen fn`.
460-
(unstable, gen_blocks, "CURRENT_RUSTC_VERSION", Some(117078), None),
460+
(unstable, gen_blocks, "1.75.0", Some(117078), None),
461461
/// Infer generic args for both consts and types.
462462
(unstable, generic_arg_infer, "1.55.0", Some(85077), None),
463463
/// An extension to the `generic_associated_types` feature, allowing incomplete features.
@@ -527,7 +527,7 @@ declare_features! (
527527
/// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
528528
(unstable, object_safe_for_dispatch, "1.40.0", Some(43561), None),
529529
/// Allows using enums in offset_of!
530-
(unstable, offset_of_enum, "CURRENT_RUSTC_VERSION", Some(106655), None),
530+
(unstable, offset_of_enum, "1.75.0", Some(106655), None),
531531
/// Allows using `#[optimize(X)]`.
532532
(unstable, optimize_attribute, "1.34.0", Some(54882), None),
533533
/// Allows exhaustive integer pattern matching on `usize` and `isize`.

library/core/src/char/decode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<I: Iterator<Item = u16>> Iterator for DecodeUtf16<I> {
106106
}
107107
}
108108

109-
#[stable(feature = "decode_utf16_fused_iterator", since = "CURRENT_RUSTC_VERSION")]
109+
#[stable(feature = "decode_utf16_fused_iterator", since = "1.75.0")]
110110
impl<I: Iterator<Item = u16> + FusedIterator> FusedIterator for DecodeUtf16<I> {}
111111

112112
impl DecodeUtf16Error {

library/core/src/intrinsics.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1072,15 +1072,15 @@ extern "rust-intrinsic" {
10721072
/// zero-initialization: This will statically either panic, or do nothing.
10731073
///
10741074
/// This intrinsic does not have a stable counterpart.
1075-
#[rustc_const_stable(feature = "const_assert_type2", since = "CURRENT_RUSTC_VERSION")]
1075+
#[rustc_const_stable(feature = "const_assert_type2", since = "1.75.0")]
10761076
#[rustc_safe_intrinsic]
10771077
#[rustc_nounwind]
10781078
pub fn assert_zero_valid<T>();
10791079

10801080
/// A guard for `std::mem::uninitialized`. This will statically either panic, or do nothing.
10811081
///
10821082
/// This intrinsic does not have a stable counterpart.
1083-
#[rustc_const_stable(feature = "const_assert_type2", since = "CURRENT_RUSTC_VERSION")]
1083+
#[rustc_const_stable(feature = "const_assert_type2", since = "1.75.0")]
10841084
#[rustc_safe_intrinsic]
10851085
#[rustc_nounwind]
10861086
pub fn assert_mem_uninitialized_valid<T>();
@@ -2279,7 +2279,7 @@ extern "rust-intrinsic" {
22792279
/// any safety invariants.
22802280
///
22812281
/// The stabilized version of this intrinsic is [`core::mem::discriminant`].
2282-
#[rustc_const_stable(feature = "const_discriminant", since = "CURRENT_RUSTC_VERSION")]
2282+
#[rustc_const_stable(feature = "const_discriminant", since = "1.75.0")]
22832283
#[rustc_safe_intrinsic]
22842284
#[rustc_nounwind]
22852285
pub fn discriminant_value<T>(v: &T) -> <T as DiscriminantKind>::Discriminant;

library/core/src/mem/maybe_uninit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl<T> MaybeUninit<T> {
398398
#[rustc_allow_const_fn_unstable(const_mut_refs)]
399399
#[rustc_allow_const_fn_unstable(const_ptr_write)]
400400
#[rustc_allow_const_fn_unstable(const_maybe_uninit_as_mut_ptr)]
401-
#[rustc_const_stable(feature = "const_maybe_uninit_zeroed", since = "CURRENT_RUSTC_VERSION")]
401+
#[rustc_const_stable(feature = "const_maybe_uninit_zeroed", since = "1.75.0")]
402402
pub const fn zeroed() -> MaybeUninit<T> {
403403
let mut u = MaybeUninit::<T>::uninit();
404404
// SAFETY: `u.as_mut_ptr()` points to allocated memory.
@@ -693,7 +693,7 @@ impl<T> MaybeUninit<T> {
693693
#[stable(feature = "maybe_uninit_extra", since = "1.60.0")]
694694
#[rustc_const_stable(
695695
feature = "const_maybe_uninit_assume_init_read",
696-
since = "CURRENT_RUSTC_VERSION"
696+
since = "1.75.0"
697697
)]
698698
#[inline(always)]
699699
#[track_caller]

library/core/src/mem/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ pub const fn needs_drop<T: ?Sized>() -> bool {
647647
#[allow(deprecated)]
648648
#[rustc_diagnostic_item = "mem_zeroed"]
649649
#[track_caller]
650-
#[rustc_const_stable(feature = "const_mem_zeroed", since = "CURRENT_RUSTC_VERSION")]
650+
#[rustc_const_stable(feature = "const_mem_zeroed", since = "1.75.0")]
651651
pub const unsafe fn zeroed<T>() -> T {
652652
// SAFETY: the caller must guarantee that an all-zero value is valid for `T`.
653653
unsafe {
@@ -1208,7 +1208,7 @@ impl<T> fmt::Debug for Discriminant<T> {
12081208
/// // assert_eq!(0, unsafe { std::mem::transmute::<_, u8>(std::mem::discriminant(&unit_like)) });
12091209
/// ```
12101210
#[stable(feature = "discriminant_value", since = "1.21.0")]
1211-
#[rustc_const_stable(feature = "const_discriminant", since = "CURRENT_RUSTC_VERSION")]
1211+
#[rustc_const_stable(feature = "const_discriminant", since = "1.75.0")]
12121212
#[cfg_attr(not(test), rustc_diagnostic_item = "mem_discriminant")]
12131213
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
12141214
pub const fn discriminant<T>(v: &T) -> Discriminant<T> {

library/core/src/net/ip_addr.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ impl IpAddr {
425425
#[inline]
426426
#[must_use = "this returns the result of the operation, \
427427
without modifying the original"]
428-
#[stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")]
429-
#[rustc_const_stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")]
428+
#[stable(feature = "ip_to_canonical", since = "1.75.0")]
429+
#[rustc_const_stable(feature = "ip_to_canonical", since = "1.75.0")]
430430
pub const fn to_canonical(&self) -> IpAddr {
431431
match self {
432432
IpAddr::V4(_) => *self,
@@ -1757,7 +1757,7 @@ impl Ipv6Addr {
17571757
#[must_use = "this returns the result of the operation, \
17581758
without modifying the original"]
17591759
#[stable(feature = "ipv6_to_ipv4_mapped", since = "1.63.0")]
1760-
#[rustc_const_stable(feature = "const_ipv6_to_ipv4_mapped", since = "CURRENT_RUSTC_VERSION")]
1760+
#[rustc_const_stable(feature = "const_ipv6_to_ipv4_mapped", since = "1.75.0")]
17611761
pub const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr> {
17621762
match self.octets() {
17631763
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, a, b, c, d] => {
@@ -1825,8 +1825,8 @@ impl Ipv6Addr {
18251825
#[inline]
18261826
#[must_use = "this returns the result of the operation, \
18271827
without modifying the original"]
1828-
#[stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")]
1829-
#[rustc_const_stable(feature = "ip_to_canonical", since = "CURRENT_RUSTC_VERSION")]
1828+
#[stable(feature = "ip_to_canonical", since = "1.75.0")]
1829+
#[rustc_const_stable(feature = "ip_to_canonical", since = "1.75.0")]
18301830
pub const fn to_canonical(&self) -> IpAddr {
18311831
if let Some(mapped) = self.to_ipv4_mapped() {
18321832
return IpAddr::V4(mapped);
@@ -2128,7 +2128,7 @@ impl From<[u16; 8]> for IpAddr {
21282128
}
21292129
}
21302130

2131-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2131+
#[stable(feature = "ip_bitops", since = "1.75.0")]
21322132
impl Not for Ipv4Addr {
21332133
type Output = Ipv4Addr;
21342134

@@ -2141,7 +2141,7 @@ impl Not for Ipv4Addr {
21412141
}
21422142
}
21432143

2144-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2144+
#[stable(feature = "ip_bitops", since = "1.75.0")]
21452145
impl Not for &'_ Ipv4Addr {
21462146
type Output = Ipv4Addr;
21472147

@@ -2151,7 +2151,7 @@ impl Not for &'_ Ipv4Addr {
21512151
}
21522152
}
21532153

2154-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2154+
#[stable(feature = "ip_bitops", since = "1.75.0")]
21552155
impl Not for Ipv6Addr {
21562156
type Output = Ipv6Addr;
21572157

@@ -2164,7 +2164,7 @@ impl Not for Ipv6Addr {
21642164
}
21652165
}
21662166

2167-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2167+
#[stable(feature = "ip_bitops", since = "1.75.0")]
21682168
impl Not for &'_ Ipv6Addr {
21692169
type Output = Ipv6Addr;
21702170

@@ -2246,13 +2246,13 @@ macro_rules! bitop_impls {
22462246
}
22472247

22482248
bitop_impls! {
2249-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2249+
#[stable(feature = "ip_bitops", since = "1.75.0")]
22502250
impl (BitAnd, BitAndAssign) for Ipv4Addr = (bitand, bitand_assign);
2251-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2251+
#[stable(feature = "ip_bitops", since = "1.75.0")]
22522252
impl (BitOr, BitOrAssign) for Ipv4Addr = (bitor, bitor_assign);
22532253

2254-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2254+
#[stable(feature = "ip_bitops", since = "1.75.0")]
22552255
impl (BitAnd, BitAndAssign) for Ipv6Addr = (bitand, bitand_assign);
2256-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2256+
#[stable(feature = "ip_bitops", since = "1.75.0")]
22572257
impl (BitOr, BitOrAssign) for Ipv6Addr = (bitor, bitor_assign);
22582258
}

library/core/src/option.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ impl<T> Option<T> {
765765
/// ```
766766
#[inline]
767767
#[must_use]
768-
#[stable(feature = "option_as_slice", since = "CURRENT_RUSTC_VERSION")]
768+
#[stable(feature = "option_as_slice", since = "1.75.0")]
769769
pub fn as_slice(&self) -> &[T] {
770770
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
771771
// to the payload, with a length of 1, so this is equivalent to
@@ -819,7 +819,7 @@ impl<T> Option<T> {
819819
/// ```
820820
#[inline]
821821
#[must_use]
822-
#[stable(feature = "option_as_slice", since = "CURRENT_RUSTC_VERSION")]
822+
#[stable(feature = "option_as_slice", since = "1.75.0")]
823823
pub fn as_mut_slice(&mut self) -> &mut [T] {
824824
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
825825
// to the payload, with a length of 1, so this is equivalent to

library/core/src/ptr/const_ptr.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ impl<T: ?Sized> *const T {
480480
/// leaving the metadata untouched.
481481
#[must_use]
482482
#[inline(always)]
483-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
484-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
483+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
484+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
485485
#[rustc_allow_const_fn_unstable(set_ptr_value)]
486486
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
487487
pub const unsafe fn byte_offset(self, count: isize) -> Self {
@@ -561,8 +561,8 @@ impl<T: ?Sized> *const T {
561561
/// leaving the metadata untouched.
562562
#[must_use]
563563
#[inline(always)]
564-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
565-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
564+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
565+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
566566
#[rustc_allow_const_fn_unstable(set_ptr_value)]
567567
pub const fn wrapping_byte_offset(self, count: isize) -> Self {
568568
self.cast::<u8>().wrapping_offset(count).with_metadata_of(self)
@@ -728,8 +728,8 @@ impl<T: ?Sized> *const T {
728728
/// For non-`Sized` pointees this operation considers only the data pointers,
729729
/// ignoring the metadata.
730730
#[inline(always)]
731-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
732-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
731+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
732+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
733733
#[rustc_allow_const_fn_unstable(set_ptr_value)]
734734
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
735735
pub const unsafe fn byte_offset_from<U: ?Sized>(self, origin: *const U) -> isize {
@@ -955,8 +955,8 @@ impl<T: ?Sized> *const T {
955955
/// leaving the metadata untouched.
956956
#[must_use]
957957
#[inline(always)]
958-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
959-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
958+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
959+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
960960
#[rustc_allow_const_fn_unstable(set_ptr_value)]
961961
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
962962
pub const unsafe fn byte_add(self, count: usize) -> Self {
@@ -1049,8 +1049,8 @@ impl<T: ?Sized> *const T {
10491049
/// leaving the metadata untouched.
10501050
#[must_use]
10511051
#[inline(always)]
1052-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1053-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1052+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1053+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
10541054
#[rustc_allow_const_fn_unstable(set_ptr_value)]
10551055
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
10561056
pub const unsafe fn byte_sub(self, count: usize) -> Self {
@@ -1130,8 +1130,8 @@ impl<T: ?Sized> *const T {
11301130
/// leaving the metadata untouched.
11311131
#[must_use]
11321132
#[inline(always)]
1133-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1134-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1133+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1134+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
11351135
#[rustc_allow_const_fn_unstable(set_ptr_value)]
11361136
pub const fn wrapping_byte_add(self, count: usize) -> Self {
11371137
self.cast::<u8>().wrapping_add(count).with_metadata_of(self)
@@ -1209,8 +1209,8 @@ impl<T: ?Sized> *const T {
12091209
/// leaving the metadata untouched.
12101210
#[must_use]
12111211
#[inline(always)]
1212-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1213-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1212+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1213+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
12141214
#[rustc_allow_const_fn_unstable(set_ptr_value)]
12151215
pub const fn wrapping_byte_sub(self, count: usize) -> Self {
12161216
self.cast::<u8>().wrapping_sub(count).with_metadata_of(self)

library/core/src/ptr/mut_ptr.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ impl<T: ?Sized> *mut T {
495495
/// leaving the metadata untouched.
496496
#[must_use]
497497
#[inline(always)]
498-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
499-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
498+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
499+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
500500
#[rustc_allow_const_fn_unstable(set_ptr_value)]
501501
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
502502
pub const unsafe fn byte_offset(self, count: isize) -> Self {
@@ -575,8 +575,8 @@ impl<T: ?Sized> *mut T {
575575
/// leaving the metadata untouched.
576576
#[must_use]
577577
#[inline(always)]
578-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
579-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
578+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
579+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
580580
#[rustc_allow_const_fn_unstable(set_ptr_value)]
581581
pub const fn wrapping_byte_offset(self, count: isize) -> Self {
582582
self.cast::<u8>().wrapping_offset(count).with_metadata_of(self)
@@ -900,8 +900,8 @@ impl<T: ?Sized> *mut T {
900900
/// For non-`Sized` pointees this operation considers only the data pointers,
901901
/// ignoring the metadata.
902902
#[inline(always)]
903-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
904-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
903+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
904+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
905905
#[rustc_allow_const_fn_unstable(set_ptr_value)]
906906
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
907907
pub const unsafe fn byte_offset_from<U: ?Sized>(self, origin: *const U) -> isize {
@@ -1056,8 +1056,8 @@ impl<T: ?Sized> *mut T {
10561056
/// leaving the metadata untouched.
10571057
#[must_use]
10581058
#[inline(always)]
1059-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1060-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1059+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1060+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
10611061
#[rustc_allow_const_fn_unstable(set_ptr_value)]
10621062
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
10631063
pub const unsafe fn byte_add(self, count: usize) -> Self {
@@ -1150,8 +1150,8 @@ impl<T: ?Sized> *mut T {
11501150
/// leaving the metadata untouched.
11511151
#[must_use]
11521152
#[inline(always)]
1153-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1154-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1153+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1154+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
11551155
#[rustc_allow_const_fn_unstable(set_ptr_value)]
11561156
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
11571157
pub const unsafe fn byte_sub(self, count: usize) -> Self {
@@ -1231,8 +1231,8 @@ impl<T: ?Sized> *mut T {
12311231
/// leaving the metadata untouched.
12321232
#[must_use]
12331233
#[inline(always)]
1234-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1235-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1234+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1235+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
12361236
#[rustc_allow_const_fn_unstable(set_ptr_value)]
12371237
pub const fn wrapping_byte_add(self, count: usize) -> Self {
12381238
self.cast::<u8>().wrapping_add(count).with_metadata_of(self)
@@ -1310,8 +1310,8 @@ impl<T: ?Sized> *mut T {
13101310
/// leaving the metadata untouched.
13111311
#[must_use]
13121312
#[inline(always)]
1313-
#[stable(feature = "pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1314-
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "CURRENT_RUSTC_VERSION")]
1313+
#[stable(feature = "pointer_byte_offsets", since = "1.75.0")]
1314+
#[rustc_const_stable(feature = "const_pointer_byte_offsets", since = "1.75.0")]
13151315
#[rustc_allow_const_fn_unstable(set_ptr_value)]
13161316
pub const fn wrapping_byte_sub(self, count: usize) -> Self {
13171317
self.cast::<u8>().wrapping_sub(count).with_metadata_of(self)

0 commit comments

Comments
 (0)