diff options
| author | Askar Safin <safinaskar@mail.ru> | 2025-02-09 08:10:08 +0300 |
|---|---|---|
| committer | Askar Safin <safinaskar@mail.ru> | 2025-02-11 07:55:57 +0300 |
| commit | 25b6761c9ed7fa814a0182dbd9a04e1c4909b88e (patch) | |
| tree | a4cfaaca35bebaf70ff9199548d7c10f30b556c5 /compiler | |
| parent | 42ceb2567979cacb97b58c779a76207b24620fa0 (diff) | |
| download | rust-25b6761c9ed7fa814a0182dbd9a04e1c4909b88e.tar.gz rust-25b6761c9ed7fa814a0182dbd9a04e1c4909b88e.zip | |
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
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index 779127ce32f..ab457a639c7 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -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()) - } -} |
