@@ -480,8 +480,8 @@ impl<T: ?Sized> *const T {
480
480
/// leaving the metadata untouched.
481
481
#[ must_use]
482
482
#[ 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 " ) ]
485
485
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
486
486
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
487
487
pub const unsafe fn byte_offset ( self , count : isize ) -> Self {
@@ -561,8 +561,8 @@ impl<T: ?Sized> *const T {
561
561
/// leaving the metadata untouched.
562
562
#[ must_use]
563
563
#[ 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 " ) ]
566
566
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
567
567
pub const fn wrapping_byte_offset ( self , count : isize ) -> Self {
568
568
self . cast :: < u8 > ( ) . wrapping_offset ( count) . with_metadata_of ( self )
@@ -728,8 +728,8 @@ impl<T: ?Sized> *const T {
728
728
/// For non-`Sized` pointees this operation considers only the data pointers,
729
729
/// ignoring the metadata.
730
730
#[ 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 " ) ]
733
733
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
734
734
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
735
735
pub const unsafe fn byte_offset_from < U : ?Sized > ( self , origin : * const U ) -> isize {
@@ -955,8 +955,8 @@ impl<T: ?Sized> *const T {
955
955
/// leaving the metadata untouched.
956
956
#[ must_use]
957
957
#[ 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 " ) ]
960
960
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
961
961
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
962
962
pub const unsafe fn byte_add ( self , count : usize ) -> Self {
@@ -1049,8 +1049,8 @@ impl<T: ?Sized> *const T {
1049
1049
/// leaving the metadata untouched.
1050
1050
#[ must_use]
1051
1051
#[ 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 " ) ]
1054
1054
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
1055
1055
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
1056
1056
pub const unsafe fn byte_sub ( self , count : usize ) -> Self {
@@ -1130,8 +1130,8 @@ impl<T: ?Sized> *const T {
1130
1130
/// leaving the metadata untouched.
1131
1131
#[ must_use]
1132
1132
#[ 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 " ) ]
1135
1135
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
1136
1136
pub const fn wrapping_byte_add ( self , count : usize ) -> Self {
1137
1137
self . cast :: < u8 > ( ) . wrapping_add ( count) . with_metadata_of ( self )
@@ -1209,8 +1209,8 @@ impl<T: ?Sized> *const T {
1209
1209
/// leaving the metadata untouched.
1210
1210
#[ must_use]
1211
1211
#[ 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 " ) ]
1214
1214
#[ rustc_allow_const_fn_unstable( set_ptr_value) ]
1215
1215
pub const fn wrapping_byte_sub ( self , count : usize ) -> Self {
1216
1216
self . cast :: < u8 > ( ) . wrapping_sub ( count) . with_metadata_of ( self )
0 commit comments