Skip to content

Commit f58c26e

Browse files
committed
Auto merge of #12501 - Veykril:dashmap, r=Veykril
internal: Update dashmap and freeze its version
2 parents 79a4a46 + 0cf677a commit f58c26e

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

Cargo.lock

Lines changed: 6 additions & 6 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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ rust-version = "1.57"
1010
doctest = false
1111

1212
[dependencies]
13+
anymap = "0.12.1"
14+
arrayvec = "0.7.2"
1315
bitflags = "1.3.2"
1416
cov-mark = "2.0.0-pre.1"
15-
dashmap = { version = "5.2.0", features = ["raw-api"] }
16-
lock_api = "0.4.6"
17-
parking_lot = "0.12.0"
18-
tracing = "0.1.32"
19-
once_cell = "1.10.0"
20-
rustc-hash = "1.1.0"
21-
either = "1.6.1"
22-
anymap = "0.12.1"
17+
# We need to freeze the version of the crate, as the raw-api feature is considered unstable
18+
dashmap = { version = "=5.3.4", features = ["raw-api"] }
2319
drop_bomb = "0.1.5"
20+
either = "1.6.1"
2421
fst = { version = "0.4.7", default-features = false }
25-
itertools = "0.10.3"
22+
hashbrown = { version = "0.12.1", default-features = false }
2623
indexmap = "1.8.0"
27-
smallvec = "1.8.0"
28-
arrayvec = "0.7.2"
24+
itertools = "0.10.3"
2925
la-arena = { version = "0.3.0", path = "../../lib/la-arena" }
26+
once_cell = "1.10.0"
27+
rustc-hash = "1.1.0"
28+
smallvec = "1.8.0"
29+
tracing = "0.1.32"
3030

3131
stdx = { path = "../stdx", version = "0.0.0" }
3232
base-db = { path = "../base-db", version = "0.0.0" }

crates/hir-def/src/intern.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
//! Eventually this should probably be replaced with salsa-based interning.
44
55
use std::{
6-
collections::HashMap,
76
fmt::{self, Debug, Display},
87
hash::{BuildHasherDefault, Hash, Hasher},
98
ops::Deref,
109
sync::Arc,
1110
};
1211

1312
use dashmap::{DashMap, SharedValue};
14-
use lock_api::RwLockWriteGuard;
13+
use hashbrown::HashMap;
1514
use once_cell::sync::OnceCell;
16-
use parking_lot::RawRwLock;
1715
use rustc_hash::FxHasher;
1816

1917
use crate::generics::GenericParams;
2018

2119
type InternMap<T> = DashMap<Arc<T>, (), BuildHasherDefault<FxHasher>>;
22-
type Guard<T> = RwLockWriteGuard<
20+
type Guard<T> = dashmap::RwLockWriteGuard<
2321
'static,
24-
RawRwLock,
2522
HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>,
2623
>;
2724

0 commit comments

Comments
 (0)