@@ -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 )
0 commit comments