Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c8f056a

Browse files
committed
Revert "Revert "Bump dashmap""
This reverts commit 39674cd.
1 parent bde624d commit c8f056a

File tree

4 files changed

+102
-16
lines changed

4 files changed

+102
-16
lines changed

Cargo.lock

Lines changed: 90 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir_def/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ doctest = false
1111

1212
[dependencies]
1313
cov-mark = "2.0.0-pre.1"
14-
dashmap = { version = "4.0.2", features = ["raw-api"] }
14+
dashmap = { version = "5.0", features = ["raw-api"] }
15+
lock_api = "0.4"
16+
parking_lot = "0.12"
1517
tracing = "0.1"
1618
once_cell = "1.3.1"
1719
rustc-hash = "1.1.0"

crates/hir_def/src/intern.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,20 @@ use std::{
1010
sync::Arc,
1111
};
1212

13-
use dashmap::{lock::RwLockWriteGuard, DashMap, SharedValue};
13+
use dashmap::{DashMap, SharedValue};
14+
use lock_api::RwLockWriteGuard;
1415
use once_cell::sync::OnceCell;
16+
use parking_lot::RawRwLock;
1517
use rustc_hash::FxHasher;
1618

1719
use crate::generics::GenericParams;
1820

1921
type InternMap<T> = DashMap<Arc<T>, (), BuildHasherDefault<FxHasher>>;
20-
type Guard<T> =
21-
RwLockWriteGuard<'static, HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>>;
22+
type Guard<T> = RwLockWriteGuard<
23+
'static,
24+
RawRwLock,
25+
HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>,
26+
>;
2227

2328
pub struct Interned<T: Internable + ?Sized> {
2429
arc: Arc<T>,

crates/rust-analyzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ crossbeam-channel = "0.5.0"
2323
dissimilar = "1.0.2"
2424
itertools = "0.10.0"
2525
lsp-types = { version = "0.91", features = ["proposed"] }
26-
parking_lot = "0.11.0"
26+
parking_lot = "0.12"
2727
xflags = "0.2.1"
2828
oorandom = "11.1.2"
2929
rustc-hash = "1.1.0"

0 commit comments

Comments
 (0)