stabilize ptr_offset_from

This commit is contained in:
Ralf Jung 2020-07-11 13:07:39 +02:00
parent 7ad4369ba6
commit 0e4f335e63
4 changed files with 2 additions and 4 deletions

View File

@ -113,7 +113,6 @@
#![feature(or_patterns)]
#![feature(pattern)]
#![feature(ptr_internals)]
#![feature(ptr_offset_from)]
#![feature(raw_ref_op)]
#![feature(rustc_attrs)]
#![feature(receiver_trait)]

View File

@ -370,7 +370,7 @@ impl<T: ?Sized> *const T {
/// let zero = ptr2_other.offset_from(ptr2); // Undefined Behavior
/// }
/// ```
#[unstable(feature = "ptr_offset_from", issue = "41079")]
#[stable(feature = "ptr_offset_from", since = "1.46.0")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
#[inline]
pub const unsafe fn offset_from(self, origin: *const T) -> isize

View File

@ -541,7 +541,7 @@ impl<T: ?Sized> *mut T {
/// let zero = ptr2_other.offset_from(ptr2); // Undefined Behavior
/// }
/// ```
#[unstable(feature = "ptr_offset_from", issue = "41079")]
#[stable(feature = "ptr_offset_from", since = "1.46.0")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
#[inline]
pub const unsafe fn offset_from(self, origin: *const T) -> isize

View File

@ -9,7 +9,6 @@
#![feature(nll)]
#![feature(or_patterns)]
#![feature(test)]
#![feature(ptr_offset_from)]
#![feature(crate_visibility_modifier)]
#![feature(never_type)]
#![feature(once_cell)]