Skip to content

Commit 5588168

Browse files
committed
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
1 parent 2933384 commit 5588168

File tree

1 file changed

+0
-8
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+0
-8
lines changed

compiler/rustc_data_structures/src/sync.rs

-8
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,3 @@ impl<T> RwLock<T> {
229229
self.write()
230230
}
231231
}
232-
233-
// FIXME: Probably a bad idea
234-
impl<T: Clone> Clone for RwLock<T> {
235-
#[inline]
236-
fn clone(&self) -> Self {
237-
RwLock::new(self.borrow().clone())
238-
}
239-
}

0 commit comments

Comments
 (0)