diff options
| author | bors <bors@rust-lang.org> | 2020-09-17 19:23:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-17 19:23:58 +0000 |
| commit | f3c923a13a458c35ee26b3513533fce8a15c9c05 (patch) | |
| tree | 14fcec7aff0a007300065d99482ce964e887bb03 /library/std/src/lib.rs | |
| parent | 7bdb5dee7bac15458b10b148e9e24968e633053e (diff) | |
| parent | 0bb96e7490299977abf2d3af16dd752d67ca43a9 (diff) | |
| download | rust-f3c923a13a458c35ee26b3513533fce8a15c9c05.tar.gz rust-f3c923a13a458c35ee26b3513533fce8a15c9c05.zip | |
Auto merge of #76645 - fusion-engineering-forks:windows-lock, r=kennytm
Small cleanups in Windows Mutex. - Move `held` into the boxed part, since the SRW lock implementation does not use this. This makes the Mutex 50% smaller. - Use `Cell` instead of `UnsafeCell` for `held`, such that `.replace()` can be used. - Add some comments. - Avoid creating multiple `&mut`s to the critical section object in `ReentrantMutex`.
Diffstat (limited to 'library/std/src/lib.rs')
| -rw-r--r-- | library/std/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index b834361b750..5333d75ec1b 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -315,6 +315,7 @@ #![feature(try_reserve)] #![feature(unboxed_closures)] #![feature(unsafe_block_in_unsafe_fn)] +#![feature(unsafe_cell_raw_get)] #![feature(untagged_unions)] #![feature(unwind_attributes)] #![feature(vec_into_raw_parts)] |
