about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-18 16:54:15 +0000
committerbors <bors@rust-lang.org>2024-02-18 16:54:15 +0000
commitc9c83cca51015c8dfeb99b6429916936819043cf (patch)
treede2c8597ee65786f3edd09344f4804d07e16883d /compiler/rustc_errors/src
parent8b21296b5db6d5724d6b8440dcf459fa82fd88b5 (diff)
parent92386223a1e2e16e27f7ab56663bbe19febc410c (diff)
downloadrust-c9c83cca51015c8dfeb99b6429916936819043cf.tar.gz
rust-c9c83cca51015c8dfeb99b6429916936819043cf.zip
Auto merge of #121265 - klensy:bump-18-02-24, r=Mark-Simulacrum
bump some deps

First commit dedupes darling* crates and remove one more syn 1.* dep
Second one bumps windows crate to 0.52
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lock.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lock.rs b/compiler/rustc_errors/src/lock.rs
index bd5cf49b56b..0aeb511214b 100644
--- a/compiler/rustc_errors/src/lock.rs
+++ b/compiler/rustc_errors/src/lock.rs
@@ -27,7 +27,8 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
     impl Drop for Handle {
         fn drop(&mut self) {
             unsafe {
-                CloseHandle(self.0);
+                // FIXME can panic here
+                CloseHandle(self.0).unwrap();
             }
         }
     }
@@ -37,7 +38,8 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
     impl Drop for Guard {
         fn drop(&mut self) {
             unsafe {
-                ReleaseMutex((self.0).0);
+                // FIXME can panic here
+                ReleaseMutex((self.0).0).unwrap();
             }
         }
     }