Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/intern.rs')
-rw-r--r--crates/hir-def/src/intern.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/hir-def/src/intern.rs b/crates/hir-def/src/intern.rs
index f5a4f5ec4e..f08521a340 100644
--- a/crates/hir-def/src/intern.rs
+++ b/crates/hir-def/src/intern.rs
@@ -3,7 +3,6 @@
//! Eventually this should probably be replaced with salsa-based interning.
use std::{
- collections::HashMap,
fmt::{self, Debug, Display},
hash::{BuildHasherDefault, Hash, Hasher},
ops::Deref,
@@ -11,17 +10,15 @@ use std::{
};
use dashmap::{DashMap, SharedValue};
-use lock_api::RwLockWriteGuard;
+use hashbrown::HashMap;
use once_cell::sync::OnceCell;
-use parking_lot::RawRwLock;
use rustc_hash::FxHasher;
use crate::generics::GenericParams;
type InternMap<T> = DashMap<Arc<T>, (), BuildHasherDefault<FxHasher>>;
-type Guard<T> = RwLockWriteGuard<
+type Guard<T> = dashmap::RwLockWriteGuard<
'static,
- RawRwLock,
HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>,
>;