@@ -467,8 +467,8 @@ impl<T: ?Sized> *const T {
467
467
/// leaving the metadata untouched.
468
468
#[ must_use]
469
469
#[ inline( always) ]
470
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
471
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
470
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
471
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
472
472
pub const unsafe fn byte_offset ( self , count : isize ) -> Self {
473
473
// SAFETY: the caller must uphold the safety contract for `offset`.
474
474
let this = unsafe { self . cast :: < u8 > ( ) . offset ( count) . cast :: < ( ) > ( ) } ;
@@ -549,8 +549,8 @@ impl<T: ?Sized> *const T {
549
549
/// leaving the metadata untouched.
550
550
#[ must_use]
551
551
#[ inline( always) ]
552
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
553
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
552
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
553
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
554
554
pub const fn wrapping_byte_offset ( self , count : isize ) -> Self {
555
555
from_raw_parts :: < T > ( self . cast :: < u8 > ( ) . wrapping_offset ( count) . cast :: < ( ) > ( ) , metadata ( self ) )
556
556
}
@@ -659,8 +659,8 @@ impl<T: ?Sized> *const T {
659
659
/// For non-`Sized` pointees this operation considers only the data pointers,
660
660
/// ignoring the metadata.
661
661
#[ inline( always) ]
662
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
663
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
662
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
663
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
664
664
pub const unsafe fn byte_offset_from ( self , origin : * const T ) -> isize {
665
665
// SAFETY: the caller must uphold the safety contract for `offset_from`.
666
666
unsafe { self . cast :: < u8 > ( ) . offset_from ( origin. cast :: < u8 > ( ) ) }
@@ -880,8 +880,8 @@ impl<T: ?Sized> *const T {
880
880
/// leaving the metadata untouched.
881
881
#[ must_use]
882
882
#[ inline( always) ]
883
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
884
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
883
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
884
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
885
885
pub const unsafe fn byte_add ( self , count : usize ) -> Self {
886
886
// SAFETY: the caller must uphold the safety contract for `add`.
887
887
let this = unsafe { self . cast :: < u8 > ( ) . add ( count) . cast :: < ( ) > ( ) } ;
@@ -965,8 +965,8 @@ impl<T: ?Sized> *const T {
965
965
/// leaving the metadata untouched.
966
966
#[ must_use]
967
967
#[ inline( always) ]
968
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
969
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
968
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
969
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
970
970
pub const unsafe fn byte_sub ( self , count : usize ) -> Self {
971
971
// SAFETY: the caller must uphold the safety contract for `sub`.
972
972
let this = unsafe { self . cast :: < u8 > ( ) . sub ( count) . cast :: < ( ) > ( ) } ;
@@ -1047,8 +1047,8 @@ impl<T: ?Sized> *const T {
1047
1047
/// leaving the metadata untouched.
1048
1048
#[ must_use]
1049
1049
#[ inline( always) ]
1050
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
1051
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
1050
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
1051
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
1052
1052
pub const fn wrapping_byte_add ( self , count : usize ) -> Self {
1053
1053
from_raw_parts :: < T > ( self . cast :: < u8 > ( ) . wrapping_add ( count) . cast :: < ( ) > ( ) , metadata ( self ) )
1054
1054
}
@@ -1127,8 +1127,8 @@ impl<T: ?Sized> *const T {
1127
1127
/// leaving the metadata untouched.
1128
1128
#[ must_use]
1129
1129
#[ inline( always) ]
1130
- #[ unstable( feature = "pointer_byte_offsets" , issue = "none " ) ]
1131
- #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "none " ) ]
1130
+ #[ unstable( feature = "pointer_byte_offsets" , issue = "96283 " ) ]
1131
+ #[ rustc_const_unstable( feature = "const_pointer_byte_offsets" , issue = "96283 " ) ]
1132
1132
pub const fn wrapping_byte_sub ( self , count : usize ) -> Self {
1133
1133
from_raw_parts :: < T > ( self . cast :: < u8 > ( ) . wrapping_sub ( count) . cast :: < ( ) > ( ) , metadata ( self ) )
1134
1134
}
@@ -1296,7 +1296,7 @@ impl<T: ?Sized> *const T {
1296
1296
/// Returns whether the pointer is properly aligned for `T`.
1297
1297
#[ must_use]
1298
1298
#[ inline]
1299
- #[ unstable( feature = "pointer_is_aligned" , issue = "none " ) ]
1299
+ #[ unstable( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1300
1300
pub fn is_aligned ( self ) -> bool
1301
1301
where
1302
1302
T : Sized ,
@@ -1314,7 +1314,7 @@ impl<T: ?Sized> *const T {
1314
1314
/// The function panics if `align` is not a power-of-two (this includes 0).
1315
1315
#[ must_use]
1316
1316
#[ inline]
1317
- #[ unstable( feature = "pointer_is_aligned" , issue = "none " ) ]
1317
+ #[ unstable( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1318
1318
pub fn is_aligned_to ( self , align : usize ) -> bool {
1319
1319
if !align. is_power_of_two ( ) {
1320
1320
panic ! ( "is_aligned_to: align is not a power-of-two" ) ;
0 commit comments