mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
internal: Update dashmap and freeze its version
This commit is contained in:
parent
0be31d945e
commit
0cf677ab42
3 changed files with 20 additions and 23 deletions
|
@ -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>>,
|
||||
>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue