]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_errors/lock.rs
Simplify Cache wrapper to single type, impl Deref on it, fix all compilation errors...
[rust.git] / src / librustc_errors / lock.rs
index f731791efe6e16344c6d5f11d8acd825f4b753df..25a27d2cbd884d953c3e28e64c7f043d2db5e519 100644 (file)
@@ -64,7 +64,7 @@ fn drop(&mut self) {
         //
         // This will silently create one if it doesn't already exist, or it'll
         // open up a handle to one if it already exists.
-        let mutex = CreateMutexA(0 as *mut _, 0, cname.as_ptr() as *const u8);
+        let mutex = CreateMutexA(std::ptr::null_mut(), 0, cname.as_ptr() as *const u8);
         if mutex.is_null() {
             panic!("failed to create global mutex named `{}`: {}",
                    name,