]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/thread_local/mod.rs
rollup merge of #21438: taralx/kill-racycell
[rust.git] / src / libstd / thread_local / mod.rs
index e7c4e4ccdfb88d0abd6e19daec1a0eff9d7dea9c..4c99cff34da65cba8ace81c1f800c29ff9f732da 100644 (file)
@@ -449,7 +449,7 @@ fn _tlv_atexit(dtor: unsafe extern fn(*mut u8),
         // destructor as running for this thread so calls to `get` will return
         // `None`.
         *(*ptr).dtor_running.get() = true;
-        ptr::read((*ptr).inner.get() as *const T);
+        ptr::read((*ptr).inner.get());
     }
 }