@@ -627,7 +627,7 @@ impl<T: ?Sized> *const T {
627627 /// to [`sub`](#method.sub)). The following are all equivalent, assuming
628628 /// that their safety preconditions are met:
629629 /// ```rust
630- /// # #![feature(ptr_unsigned_offset_from )]
630+ /// # #![feature(ptr_sub_ptr )]
631631 /// # unsafe fn blah(ptr: *const i32, origin: *const i32, count: usize) -> bool {
632632 /// ptr.sub_ptr(origin) == count
633633 /// # &&
@@ -656,7 +656,7 @@ impl<T: ?Sized> *const T {
656656 /// # Examples
657657 ///
658658 /// ```
659- /// #![feature(ptr_unsigned_offset_from )]
659+ /// #![feature(ptr_sub_ptr )]
660660 ///
661661 /// let a = [0; 5];
662662 /// let ptr1: *const i32 = &a[1];
@@ -671,8 +671,8 @@ impl<T: ?Sized> *const T {
671671 /// // This would be incorrect, as the pointers are not correctly ordered:
672672 /// // ptr1.offset_from(ptr2)
673673 /// ```
674- #[ unstable( feature = "ptr_unsigned_offset_from " , issue = "88888888 " ) ]
675- #[ rustc_const_unstable( feature = "const_ptr_offset_from " , issue = "92980 " ) ]
674+ #[ unstable( feature = "ptr_sub_ptr " , issue = "95892 " ) ]
675+ #[ rustc_const_unstable( feature = "const_ptr_sub_ptr " , issue = "95892 " ) ]
676676 #[ inline]
677677 pub const unsafe fn sub_ptr ( self , origin : * const T ) -> usize
678678 where
0 commit comments