diff options
Diffstat (limited to 'library/std/src/sys_common/remutex.rs')
| -rw-r--r-- | library/std/src/sys_common/remutex.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/library/std/src/sys_common/remutex.rs b/library/std/src/sys_common/remutex.rs index 8f252308de7..8921af311d4 100644 --- a/library/std/src/sys_common/remutex.rs +++ b/library/std/src/sys_common/remutex.rs @@ -168,13 +168,6 @@ impl<T> ReentrantMutex<T> { } } -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; |
