Skip to content

Commit bb1423e

Browse files
committed
fix const_ptr_offset_from tracking issue
1 parent 48e89b0 commit bb1423e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ extern "rust-intrinsic" {
18931893
pub fn nontemporal_store<T>(ptr: *mut T, val: T);
18941894

18951895
/// See documentation of `<*const T>::offset_from` for details.
1896-
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
1896+
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
18971897
pub fn ptr_offset_from<T>(ptr: *const T, base: *const T) -> isize;
18981898

18991899
/// See documentation of `<*const T>::guaranteed_eq` for details.

library/core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ impl<T: ?Sized> *const T {
439439
/// }
440440
/// ```
441441
#[stable(feature = "ptr_offset_from", since = "1.47.0")]
442-
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
442+
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
443443
#[inline]
444444
pub const unsafe fn offset_from(self, origin: *const T) -> isize
445445
where

library/core/src/ptr/mut_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ impl<T: ?Sized> *mut T {
617617
/// }
618618
/// ```
619619
#[stable(feature = "ptr_offset_from", since = "1.47.0")]
620-
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
620+
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
621621
#[inline(always)]
622622
pub const unsafe fn offset_from(self, origin: *const T) -> isize
623623
where

0 commit comments

Comments
 (0)