about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-11-28 09:29:56 +0100
committerRalf Jung <post@ralfj.de>2018-11-28 09:29:56 +0100
commit12d90aa949f34712a374984bfaf88a5bf2f08685 (patch)
tree84058d85f4269cf4ce2fcb3cf0460dc2fc6eb0ca /src/libcore
parenta4f12344c68530d1f42c5b00c10ab417137c0491 (diff)
downloadrust-12d90aa949f34712a374984bfaf88a5bf2f08685.tar.gz
rust-12d90aa949f34712a374984bfaf88a5bf2f08685.zip
put the MaybeUninit inside the UnsafeCell
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/mem.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index 626db7806df..b61a5c973a7 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -1106,9 +1106,6 @@ impl<T> MaybeUninit<T> {
     ///
     /// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized
     /// state, otherwise this will immediately cause undefined behavior.
-    // FIXME: We currently rely on the above being incorrect, i.e., we have references
-    // to uninitialized data (e.g. in `libstd/sys/windows/mutex.rs`).  We should make
-    // a final decision about the rules before stabilization.
     #[unstable(feature = "maybe_uninit", issue = "53491")]
     #[inline(always)]
     pub unsafe fn get_ref(&self) -> &T {