diff options
| author | Ralf Jung <post@ralfj.de> | 2018-11-28 09:29:56 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-11-28 09:29:56 +0100 |
| commit | 12d90aa949f34712a374984bfaf88a5bf2f08685 (patch) | |
| tree | 84058d85f4269cf4ce2fcb3cf0460dc2fc6eb0ca /src/libcore | |
| parent | a4f12344c68530d1f42c5b00c10ab417137c0491 (diff) | |
| download | rust-12d90aa949f34712a374984bfaf88a5bf2f08685.tar.gz rust-12d90aa949f34712a374984bfaf88a5bf2f08685.zip | |
put the MaybeUninit inside the UnsafeCell
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem.rs | 3 |
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 { |
