File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2017,7 +2017,7 @@ extern "rust-intrinsic" {
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_stable ( feature = "const_ptr_offset_from " , since = "1.65.0 " ) ]
2020
+ #[ rustc_const_unstable ( feature = "const_ptr_sub_ptr " , issue = "95892 " ) ]
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
1
+ #![ feature( const_ptr_sub_ptr) ]
1
2
#![ feature( core_intrinsics) ]
2
3
3
4
use std:: intrinsics:: { ptr_offset_from, ptr_offset_from_unsigned} ;
You can’t perform that action at this time.
0 commit comments