diff options
| author | Ralf Jung <post@ralfj.de> | 2018-11-27 16:12:08 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-11-27 16:12:08 +0100 |
| commit | a4f12344c68530d1f42c5b00c10ab417137c0491 (patch) | |
| tree | e524ce93de95033d5cdac8908d6fad6eb4e09968 /src/libstd/sys | |
| parent | 2f2f37983d14c53c3328540d6cf44499c1699521 (diff) | |
| download | rust-a4f12344c68530d1f42c5b00c10ab417137c0491.tar.gz rust-a4f12344c68530d1f42c5b00c10ab417137c0491.zip | |
add comments explaining our uses of get_ref/get_mut for MaybeUninit
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/mutex.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/mutex.rs b/src/libstd/sys/windows/mutex.rs index a8eb82a8a66..0c228f5097e 100644 --- a/src/libstd/sys/windows/mutex.rs +++ b/src/libstd/sys/windows/mutex.rs @@ -168,6 +168,9 @@ impl ReentrantMutex { } pub unsafe fn init(&mut self) { + // FIXME: Technically, this is calling `get_ref` on an uninitialized + // `MaybeUninit`. Revisit this once we decided whether that is valid + // or not. c::InitializeCriticalSection(self.inner.get_ref().get()); } |
