Skip to content

Commit 78cd9d1

Browse files
authored
Rollup merge of #63570 - rust-lang:maybe-uninit-gates, r=RalfJung
Adjust tracking issues for `MaybeUninit<T>` gates cc #63566 #63567 #63568 #63569 r? @RalfJung
2 parents d11cf77 + 24693d7 commit 78cd9d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/mem/maybe_uninit.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl<T> MaybeUninit<T> {
312312
/// without dropping it, so be careful not to use this twice unless you want to
313313
/// skip running the destructor. For your convenience, this also returns a mutable
314314
/// reference to the (now safely initialized) contents of `self`.
315-
#[unstable(feature = "maybe_uninit_extra", issue = "53491")]
315+
#[unstable(feature = "maybe_uninit_extra", issue = "63567")]
316316
#[inline(always)]
317317
pub fn write(&mut self, val: T) -> &mut T {
318318
unsafe {
@@ -502,7 +502,7 @@ impl<T> MaybeUninit<T> {
502502
/// // We now created two copies of the same vector, leading to a double-free when
503503
/// // they both get dropped!
504504
/// ```
505-
#[unstable(feature = "maybe_uninit_extra", issue = "53491")]
505+
#[unstable(feature = "maybe_uninit_extra", issue = "63567")]
506506
#[inline(always)]
507507
pub unsafe fn read(&self) -> T {
508508
intrinsics::panic_if_uninhabited::<T>();
@@ -516,7 +516,7 @@ impl<T> MaybeUninit<T> {
516516
/// It is up to the caller to guarantee that the `MaybeUninit<T>` really is in an initialized
517517
/// state. Calling this when the content is not yet fully initialized causes undefined
518518
/// behavior.
519-
#[unstable(feature = "maybe_uninit_ref", issue = "53491")]
519+
#[unstable(feature = "maybe_uninit_ref", issue = "63568")]
520520
#[inline(always)]
521521
pub unsafe fn get_ref(&self) -> &T {
522522
&*self.value
@@ -532,21 +532,21 @@ impl<T> MaybeUninit<T> {
532532
// FIXME(#53491): We currently rely on the above being incorrect, i.e., we have references
533533
// to uninitialized data (e.g., in `libcore/fmt/float.rs`). We should make
534534
// a final decision about the rules before stabilization.
535-
#[unstable(feature = "maybe_uninit_ref", issue = "53491")]
535+
#[unstable(feature = "maybe_uninit_ref", issue = "63568")]
536536
#[inline(always)]
537537
pub unsafe fn get_mut(&mut self) -> &mut T {
538538
&mut *self.value
539539
}
540540

541541
/// Gets a pointer to the first element of the array.
542-
#[unstable(feature = "maybe_uninit_slice", issue = "53491")]
542+
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
543543
#[inline(always)]
544544
pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T {
545545
this as *const [MaybeUninit<T>] as *const T
546546
}
547547

548548
/// Gets a mutable pointer to the first element of the array.
549-
#[unstable(feature = "maybe_uninit_slice", issue = "53491")]
549+
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
550550
#[inline(always)]
551551
pub fn first_ptr_mut(this: &mut [MaybeUninit<T>]) -> *mut T {
552552
this as *mut [MaybeUninit<T>] as *mut T

0 commit comments

Comments
 (0)