Skip to content

Commit

Permalink
stabilize ptr_offset_from
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 22, 2020
1 parent 7ad4369 commit 0e4f335
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion library/alloc/src/lib.rs
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/ptr/const_ptr.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/ptr/mut_ptr.rs
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/lib.rs
Expand Up @@ -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)]
Expand Down

0 comments on commit 0e4f335

Please sign in to comment.