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:
parent
42ceb25679
commit
25b6761c9e
1 changed files with 0 additions and 8 deletions
|
@ -229,11 +229,3 @@ impl<T> RwLock<T> {
|
||||||
self.write()
|
self.write()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Probably a bad idea
|
|
||||||
impl<T: Clone> Clone for RwLock<T> {
|
|
||||||
#[inline]
|
|
||||||
fn clone(&self) -> Self {
|
|
||||||
RwLock::new(self.borrow().clone())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue