Skip to content

Commit 9612038

Browse files
authoredJan 17, 2022
Rollup merge of #92981 - RalfJung:const_ptr_offset_from, r=dtolnay
fix const_ptr_offset_from tracking issue The old tracking issue #41079 was for exposing those functions at all, and got closed when they were stabilized. We had nothing tracking their `const`ness so I opened a new tracking issue: #92980.
2 parents 7bdd978 + bb1423e commit 9612038

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)
Please sign in to comment.