1
Fork 0

compiler/rustc_data_structures/src/sync.rs: remove "impl Clone for RwLock"

parking_lot::RwLock doesn't have "impl Clone", so we should not have, either
This commit is contained in:
Askar Safin 2025-02-09 08:10:08 +03:00
parent 42ceb25679
commit 25b6761c9e

View file

@ -229,11 +229,3 @@ impl<T> RwLock<T> {
self.write()
}
}
// FIXME: Probably a bad idea
impl<T: Clone> Clone for RwLock<T> {
#[inline]
fn clone(&self) -> Self {
RwLock::new(self.borrow().clone())
}
}