Skip to content

Commit 1cf7a05

Browse files
committed
Use a qualified path instead of renaming parking_lot::RwLock
1 parent 5afd122 commit 1cf7a05

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+2
-4
lines changed

compiler/rustc_data_structures/src/sync.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ impl<T> MTLock<T> {
142142
}
143143
}
144144

145-
use parking_lot::RwLock as InnerRwLock;
146-
147145
/// This makes locks panic if they are already held.
148146
/// It is only useful when you are running in a single thread
149147
const ERROR_CHECKING: bool = false;
@@ -167,12 +165,12 @@ impl<K: Eq + Hash, V: Eq, S: BuildHasher> HashMapExt<K, V> for HashMap<K, V, S>
167165
}
168166

169167
#[derive(Debug, Default)]
170-
pub struct RwLock<T>(InnerRwLock<T>);
168+
pub struct RwLock<T>(parking_lot::RwLock<T>);
171169

172170
impl<T> RwLock<T> {
173171
#[inline(always)]
174172
pub fn new(inner: T) -> Self {
175-
RwLock(InnerRwLock::new(inner))
173+
RwLock(parking_lot::RwLock::new(inner))
176174
}
177175

178176
#[inline(always)]

0 commit comments

Comments
 (0)