Skip to content

Commit ec5d78d

Browse files
committed
fix feature gate and tracking issue
1 parent 0aee186 commit ec5d78d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/mem/maybe_uninit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ impl<T> MaybeUninit<T> {
405405
/// (Notice that the rules around references to uninitialized data are not finalized yet, but
406406
/// until they are, it is advisable to avoid them.)
407407
#[stable(feature = "maybe_uninit", since = "1.36.0")]
408-
#[rustc_const_unstable(feature="maybe_uninit_as_ptr", issue = "none")]
408+
#[rustc_const_unstable(feature = "const_maybe_uninit_as_ptr", issue = "75251")]
409409
#[inline(always)]
410410
pub const fn as_ptr(&self) -> *const T {
411411
// `MaybeUninit` and `ManuallyDrop` are both `repr(transparent)` so we can cast the pointer.
@@ -444,7 +444,7 @@ impl<T> MaybeUninit<T> {
444444
/// (Notice that the rules around references to uninitialized data are not finalized yet, but
445445
/// until they are, it is advisable to avoid them.)
446446
#[stable(feature = "maybe_uninit", since = "1.36.0")]
447-
#[rustc_const_unstable(feature="maybe_uninit_as_ptr", issue = "none")]
447+
#[rustc_const_unstable(feature = "const_maybe_uninit_as_ptr", issue = "75251")]
448448
#[inline(always)]
449449
pub const fn as_mut_ptr(&mut self) -> *mut T {
450450
// `MaybeUninit` and `ManuallyDrop` are both `repr(transparent)` so we can cast the pointer.

0 commit comments

Comments
 (0)