Do not include const_ptr_sub_ptr in this stabilization

This commit is contained in:
Deadbeef 2022-05-12 16:48:46 +10:00
parent ad93272627
commit 69ad634808
2 changed files with 2 additions and 1 deletions

View File

@ -2017,7 +2017,7 @@ mod atomics {
pub fn ptr_offset_from<T>(ptr: *const T, base: *const T) -> isize;
/// See documentation of `<*const T>::sub_ptr` for details.
#[rustc_const_stable(feature = "const_ptr_offset_from", since = "1.65.0")]
#[rustc_const_unstable(feature = "const_ptr_sub_ptr", issue = "95892")]
pub fn ptr_offset_from_unsigned<T>(ptr: *const T, base: *const T) -> usize;
/// See documentation of `<*const T>::guaranteed_eq` for details.

View File

@ -1,3 +1,4 @@
#![feature(const_ptr_sub_ptr)]
#![feature(core_intrinsics)]
use std::intrinsics::{ptr_offset_from, ptr_offset_from_unsigned};