the one left behind
This commit is contained in:
parent
6d35f8475f
commit
943911cc8b
@ -625,8 +625,8 @@ impl<T> MaybeUninit<T> {
|
|||||||
/// // Initialize the `MaybeUninit` using `Cell::set`:
|
/// // Initialize the `MaybeUninit` using `Cell::set`:
|
||||||
/// unsafe {
|
/// unsafe {
|
||||||
/// b.assume_init_ref().set(true);
|
/// b.assume_init_ref().set(true);
|
||||||
/// // ^^^^^^^^^^^
|
/// // ^^^^^^^^^^^^^^^
|
||||||
/// // Reference to an uninitialized `Cell<bool>`: UB!
|
/// // Reference to an uninitialized `Cell<bool>`: UB!
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "maybe_uninit_ref", issue = "63568")]
|
#[unstable(feature = "maybe_uninit_ref", issue = "63568")]
|
||||||
@ -748,7 +748,7 @@ impl<T> MaybeUninit<T> {
|
|||||||
/// foo.assume_init()
|
/// foo.assume_init()
|
||||||
/// };
|
/// };
|
||||||
/// ```
|
/// ```
|
||||||
// FIXME(#53491): We currently rely on the above being incorrect, i.e., we have references
|
// FIXME(#76092): We currently rely on the above being incorrect, i.e., we have references
|
||||||
// to uninitialized data (e.g., in `libcore/fmt/float.rs`). We should make
|
// to uninitialized data (e.g., in `libcore/fmt/float.rs`). We should make
|
||||||
// a final decision about the rules before stabilization.
|
// a final decision about the rules before stabilization.
|
||||||
#[unstable(feature = "maybe_uninit_ref", issue = "63568")]
|
#[unstable(feature = "maybe_uninit_ref", issue = "63568")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user