File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2013,11 +2013,11 @@ extern "rust-intrinsic" {
2013
2013
pub fn nontemporal_store < T > ( ptr : * mut T , val : T ) ;
2014
2014
2015
2015
/// See documentation of `<*const T>::offset_from` for details.
2016
- #[ rustc_const_unstable ( feature = "const_ptr_offset_from" , issue = "92980 " ) ]
2016
+ #[ rustc_const_stable ( feature = "const_ptr_offset_from" , since = "1.65.0 " ) ]
2017
2017
pub fn ptr_offset_from < T > ( ptr : * const T , base : * const T ) -> isize ;
2018
2018
2019
2019
/// See documentation of `<*const T>::sub_ptr` for details.
2020
- #[ rustc_const_unstable ( feature = "const_ptr_offset_from" , issue = "92980 " ) ]
2020
+ #[ rustc_const_stable ( feature = "const_ptr_offset_from" , since = "1.65.0 " ) ]
2021
2021
pub fn ptr_offset_from_unsigned < T > ( ptr : * const T , base : * const T ) -> usize ;
2022
2022
2023
2023
/// See documentation of `<*const T>::guaranteed_eq` for details.
Original file line number Diff line number Diff line change 130
130
#![ feature( const_replace) ]
131
131
#![ feature( const_ptr_as_ref) ]
132
132
#![ feature( const_ptr_is_null) ]
133
- #![ feature( const_ptr_offset_from) ]
134
133
#![ feature( const_ptr_read) ]
135
134
#![ feature( const_ptr_write) ]
136
135
#![ feature( const_raw_ptr_comparison) ]
Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ impl<T: ?Sized> *const T {
641
641
/// }
642
642
/// ```
643
643
#[ stable( feature = "ptr_offset_from" , since = "1.47.0" ) ]
644
- #[ rustc_const_unstable ( feature = "const_ptr_offset_from" , issue = "92980 " ) ]
644
+ #[ rustc_const_stable ( feature = "const_ptr_offset_from" , since = "1.65.0 " ) ]
645
645
#[ inline]
646
646
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
647
647
pub const unsafe fn offset_from ( self , origin : * const T ) -> isize
Original file line number Diff line number Diff line change @@ -824,7 +824,7 @@ impl<T: ?Sized> *mut T {
824
824
/// }
825
825
/// ```
826
826
#[ stable( feature = "ptr_offset_from" , since = "1.47.0" ) ]
827
- #[ rustc_const_unstable ( feature = "const_ptr_offset_from" , issue = "92980 " ) ]
827
+ #[ rustc_const_stable ( feature = "const_ptr_offset_from" , since = "1.65.0 " ) ]
828
828
#[ inline( always) ]
829
829
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
830
830
pub const unsafe fn offset_from ( self , origin : * const T ) -> isize
You can’t perform that action at this time.
0 commit comments