Skip to content

Commit c9c7b44

Browse files
committed
compiler/rustc_data_structures/src/sync.rs: delete MappedLockGuard
It seems it is left-over after some refactoring
1 parent 25b6761 commit c9c7b44

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/rustc_data_structures/src/sync.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ pub use std::sync::{OnceLock, Weak};
112112

113113
pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode};
114114
pub use parking_lot::{
115-
MappedMutexGuard as MappedLockGuard, MappedRwLockReadGuard as MappedReadGuard,
116-
MappedRwLockWriteGuard as MappedWriteGuard, RwLockReadGuard as ReadGuard,
117-
RwLockWriteGuard as WriteGuard,
115+
MappedRwLockReadGuard as MappedReadGuard, MappedRwLockWriteGuard as MappedWriteGuard,
116+
RwLockReadGuard as ReadGuard, RwLockWriteGuard as WriteGuard,
118117
};
119118
#[cfg(not(target_has_atomic = "64"))]
120119
pub use portable_atomic::AtomicU64;

src/doc/rustc-dev-guide/src/parallel-rustc.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ are implemented differently depending on whether `parallel-compiler` is true.
5858
| WriteGuard | parking_lot::RwLockWriteGuard | std::cell::RefMut |
5959
| MappedWriteGuard | parking_lot::MappedRwLockWriteGuard | std::cell::RefMut |
6060
| LockGuard | parking_lot::MutexGuard | std::cell::RefMut |
61-
| MappedLockGuard | parking_lot::MappedMutexGuard | std::cell::RefMut |
6261

6362
- These thread-safe data structures are interspersed during compilation which
6463
can cause lock contention resulting in degraded performance as the number of

0 commit comments

Comments
 (0)