about summary refs log tree commit diff
path: root/library/std/src/sys/windows
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2022-09-03 14:05:28 +0200
committerjoboet <jonasboettiger@icloud.com>2022-09-03 14:05:28 +0200
commit8c37fdf2d702ff1fc805f1bbc5de634e1101a4da (patch)
treef8e7a1b7ba19ea1468795fdba6f085bc7e9befc3 /library/std/src/sys/windows
parent75b7e52e92c3b00fc891b47f5b2efdff0a2be55a (diff)
downloadrust-8c37fdf2d702ff1fc805f1bbc5de634e1101a4da.tar.gz
rust-8c37fdf2d702ff1fc805f1bbc5de634e1101a4da.zip
std: make `ReentrantMutex` movable and `const`; simplify `Stdout` initialization
Diffstat (limited to 'library/std/src/sys/windows')
-rw-r--r--library/std/src/sys/windows/locks/mutex.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/std/src/sys/windows/locks/mutex.rs b/library/std/src/sys/windows/locks/mutex.rs
index f91e8f9f59a..91207f5f466 100644
--- a/library/std/src/sys/windows/locks/mutex.rs
+++ b/library/std/src/sys/windows/locks/mutex.rs
@@ -37,8 +37,6 @@ impl Mutex {
     pub const fn new() -> Mutex {
         Mutex { srwlock: UnsafeCell::new(c::SRWLOCK_INIT) }
     }
-    #[inline]
-    pub unsafe fn init(&mut self) {}
 
     #[inline]
     pub unsafe fn lock(&self) {