Skip to content

Commit cf000f0

Browse files
committed
Pointer metadata: add tracking issue number
1 parent 5ade3fe commit cf000f0

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

Diff for: library/core/src/ptr/const_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ impl<T: ?Sized> *const T {
5252
///
5353
/// The pointer can be later reconstructed with [`from_raw_parts`].
5454
#[cfg(not(bootstrap))]
55-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
56-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
55+
#[unstable(feature = "ptr_metadata", issue = "81513")]
56+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
5757
#[inline]
5858
pub const fn to_raw_parts(self) -> (*const (), <T as super::Pointee>::Metadata) {
5959
(self.cast(), super::metadata(self))

Diff for: library/core/src/ptr/metadata.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
1+
#![unstable(feature = "ptr_metadata", issue = "81513")]
22

33
use crate::fmt;
44
use crate::hash::{Hash, Hasher};
@@ -72,7 +72,7 @@ pub trait Pointee {
7272
/// assert_eq!(std::mem::size_of::<&T>(), std::mem::size_of::<usize>())
7373
/// }
7474
/// ```
75-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
75+
#[unstable(feature = "ptr_metadata", issue = "81513")]
7676
// NOTE: don’t stabilize this before trait aliases are stable in the language?
7777
pub trait Thin = Pointee<Metadata = ()>;
7878

@@ -88,7 +88,7 @@ pub trait Thin = Pointee<Metadata = ()>;
8888
///
8989
/// assert_eq!(std::ptr::metadata("foo"), 3_usize);
9090
/// ```
91-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
91+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
9292
#[inline]
9393
pub const fn metadata<T: ?Sized>(ptr: *const T) -> <T as Pointee>::Metadata {
9494
// SAFETY: Accessing the value from the `PtrRepr` union is safe since *const T
@@ -104,8 +104,8 @@ pub const fn metadata<T: ?Sized>(ptr: *const T) -> <T as Pointee>::Metadata {
104104
/// For trait objects, the metadata must come from a pointer to the same underlying ereased type.
105105
///
106106
/// [`slice::from_raw_parts`]: crate::slice::from_raw_parts
107-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
108-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
107+
#[unstable(feature = "ptr_metadata", issue = "81513")]
108+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
109109
#[inline]
110110
pub const fn from_raw_parts<T: ?Sized>(
111111
data_address: *const (),
@@ -121,8 +121,8 @@ pub const fn from_raw_parts<T: ?Sized>(
121121
/// raw `*mut` pointer is returned, as opposed to a raw `*const` pointer.
122122
///
123123
/// See the documentation of [`from_raw_parts`] for more details.
124-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
125-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
124+
#[unstable(feature = "ptr_metadata", issue = "81513")]
125+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
126126
#[inline]
127127
pub const fn from_raw_parts_mut<T: ?Sized>(
128128
data_address: *mut (),

Diff for: library/core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ mod metadata;
8787
#[cfg(not(bootstrap))]
8888
pub(crate) use metadata::PtrRepr;
8989
#[cfg(not(bootstrap))]
90-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
90+
#[unstable(feature = "ptr_metadata", issue = "81513")]
9191
pub use metadata::{from_raw_parts, from_raw_parts_mut, metadata, DynMetadata, Pointee, Thin};
9292

9393
mod non_null;

Diff for: library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ impl<T: ?Sized> *mut T {
5151
///
5252
/// The pointer can be later reconstructed with [`from_raw_parts_mut`].
5353
#[cfg(not(bootstrap))]
54-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
55-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
54+
#[unstable(feature = "ptr_metadata", issue = "81513")]
55+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
5656
#[inline]
5757
pub const fn to_raw_parts(self) -> (*mut (), <T as super::Pointee>::Metadata) {
5858
(self.cast(), super::metadata(self))

Diff for: library/core/src/ptr/non_null.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ impl<T: ?Sized> NonNull<T> {
182182
///
183183
/// [`std::ptr::from_raw_parts`]: crate::ptr::from_raw_parts
184184
#[cfg(not(bootstrap))]
185-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
186-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
185+
#[unstable(feature = "ptr_metadata", issue = "81513")]
186+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
187187
#[inline]
188188
pub const fn from_raw_parts(
189189
data_address: NonNull<()>,
@@ -199,8 +199,8 @@ impl<T: ?Sized> NonNull<T> {
199199
///
200200
/// The pointer can be later reconstructed with [`NonNull::from_raw_parts`].
201201
#[cfg(not(bootstrap))]
202-
#[unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
203-
#[rustc_const_unstable(feature = "ptr_metadata", issue = /* FIXME */ "none")]
202+
#[unstable(feature = "ptr_metadata", issue = "81513")]
203+
#[rustc_const_unstable(feature = "ptr_metadata", issue = "81513")]
204204
#[inline]
205205
pub const fn to_raw_parts(self) -> (NonNull<()>, <T as super::Pointee>::Metadata) {
206206
(self.cast(), super::metadata(self.as_ptr()))

0 commit comments

Comments
 (0)