Skip to content

Commit

Permalink
Auto merge of rust-lang#12501 - Veykril:dashmap, r=Veykril
Browse files Browse the repository at this point in the history
internal: Update dashmap and freeze its version
  • Loading branch information
bors committed Jun 10, 2022
2 parents 79a4a46 + 0cf677a commit f58c26e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions crates/hir-def/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ rust-version = "1.57"
doctest = false

[dependencies]
anymap = "0.12.1"
arrayvec = "0.7.2"
bitflags = "1.3.2"
cov-mark = "2.0.0-pre.1"
dashmap = { version = "5.2.0", features = ["raw-api"] }
lock_api = "0.4.6"
parking_lot = "0.12.0"
tracing = "0.1.32"
once_cell = "1.10.0"
rustc-hash = "1.1.0"
either = "1.6.1"
anymap = "0.12.1"
# We need to freeze the version of the crate, as the raw-api feature is considered unstable
dashmap = { version = "=5.3.4", features = ["raw-api"] }
drop_bomb = "0.1.5"
either = "1.6.1"
fst = { version = "0.4.7", default-features = false }
itertools = "0.10.3"
hashbrown = { version = "0.12.1", default-features = false }
indexmap = "1.8.0"
smallvec = "1.8.0"
arrayvec = "0.7.2"
itertools = "0.10.3"
la-arena = { version = "0.3.0", path = "../../lib/la-arena" }
once_cell = "1.10.0"
rustc-hash = "1.1.0"
smallvec = "1.8.0"
tracing = "0.1.32"

stdx = { path = "../stdx", version = "0.0.0" }
base-db = { path = "../base-db", version = "0.0.0" }
Expand Down
7 changes: 2 additions & 5 deletions crates/hir-def/src/intern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
//! Eventually this should probably be replaced with salsa-based interning.
use std::{
collections::HashMap,
fmt::{self, Debug, Display},
hash::{BuildHasherDefault, Hash, Hasher},
ops::Deref,
sync::Arc,
};

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>>,
>;

Expand Down

0 comments on commit f58c26e

Please sign in to comment.