about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAskar Safin <safinaskar@mail.ru>2025-02-11 08:14:00 +0300
committerAskar Safin <safinaskar@mail.ru>2025-02-11 08:24:50 +0300
commitc9c7b44510425c2d594ee0b6653e68a2aead3b6d (patch)
treed06fa531c7ce010cb530d7771d1e8bfde5809429
parent25b6761c9ed7fa814a0182dbd9a04e1c4909b88e (diff)
downloadrust-c9c7b44510425c2d594ee0b6653e68a2aead3b6d.tar.gz
rust-c9c7b44510425c2d594ee0b6653e68a2aead3b6d.zip
compiler/rustc_data_structures/src/sync.rs: delete MappedLockGuard
It seems it is left-over after some refactoring
-rw-r--r--compiler/rustc_data_structures/src/sync.rs5
-rw-r--r--src/doc/rustc-dev-guide/src/parallel-rustc.md1
2 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs
index ab457a639c7..6ea7360bced 100644
--- a/compiler/rustc_data_structures/src/sync.rs
+++ b/compiler/rustc_data_structures/src/sync.rs
@@ -112,9 +112,8 @@ pub use std::sync::{OnceLock, Weak};
 
 pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode};
 pub use parking_lot::{
-    MappedMutexGuard as MappedLockGuard, MappedRwLockReadGuard as MappedReadGuard,
-    MappedRwLockWriteGuard as MappedWriteGuard, RwLockReadGuard as ReadGuard,
-    RwLockWriteGuard as WriteGuard,
+    MappedRwLockReadGuard as MappedReadGuard, MappedRwLockWriteGuard as MappedWriteGuard,
+    RwLockReadGuard as ReadGuard, RwLockWriteGuard as WriteGuard,
 };
 #[cfg(not(target_has_atomic = "64"))]
 pub use portable_atomic::AtomicU64;
diff --git a/src/doc/rustc-dev-guide/src/parallel-rustc.md b/src/doc/rustc-dev-guide/src/parallel-rustc.md
index 44c78a125f4..49c52976c9c 100644
--- a/src/doc/rustc-dev-guide/src/parallel-rustc.md
+++ b/src/doc/rustc-dev-guide/src/parallel-rustc.md
@@ -58,7 +58,6 @@ are implemented differently depending on whether `parallel-compiler` is true.
 | WriteGuard | parking_lot::RwLockWriteGuard | std::cell::RefMut |
 | MappedWriteGuard | parking_lot::MappedRwLockWriteGuard | std::cell::RefMut |
 | LockGuard | parking_lot::MutexGuard | std::cell::RefMut |
-| MappedLockGuard | parking_lot::MappedMutexGuard | std::cell::RefMut |
 
 - These thread-safe data structures are interspersed during compilation which
   can cause lock contention resulting in degraded performance as the number of