]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys_common/remutex.rs
Rollup merge of #96173 - jmaargh:jmaargh/with-capacity-doc-fix, r=Dylan-DPC
[rust.git] / library / std / src / sys_common / remutex.rs
index 8f252308de760e8515212aaf4209ecfa9089b032..8921af311d4152bb7b6fc7b4c37763ce35e14915 100644 (file)
@@ -168,13 +168,6 @@ unsafe fn increment_lock_count(&self) {
     }
 }
 
-impl<T> Drop for ReentrantMutex<T> {
-    fn drop(&mut self) {
-        // Safety: We're the unique owner of this mutex and not going to use it afterwards.
-        unsafe { self.mutex.destroy() }
-    }
-}
-
 impl<T> Deref for ReentrantMutexGuard<'_, T> {
     type Target = T;