Skip to content

Commit f671b0b

Browse files
refactor: move implementation inside anymap crate into stdx crate
1 parent 00e238e commit f671b0b

File tree

9 files changed

+140
-174
lines changed

9 files changed

+140
-174
lines changed

Cargo.lock

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ debug = 0
4646

4747
[workspace.dependencies]
4848
# local crates
49-
anymap = { path = "./crates/anymap", version = "0.0.0" }
5049
base-db = { path = "./crates/base-db", version = "0.0.0" }
5150
cfg = { path = "./crates/cfg", version = "0.0.0" }
5251
flycheck = { path = "./crates/flycheck", version = "0.0.0" }

crates/anymap/Cargo.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

crates/anymap/src/any.rs

Lines changed: 0 additions & 134 deletions
This file was deleted.

crates/hir-def/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ triomphe.workspace = true
3333
rustc-dependencies.workspace = true
3434

3535
# local deps
36-
anymap.workspace = true
3736
stdx.workspace = true
3837
intern.workspace = true
3938
base-db.workspace = true

crates/hir-def/src/dyn_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ use std::{
2929
ops::{Index, IndexMut},
3030
};
3131

32-
use anymap::Map;
3332
use rustc_hash::FxHashMap;
33+
use stdx::anymap::Map;
3434

3535
pub struct Key<K, V, P = (K, V)> {
3636
_phantom: PhantomData<(K, V, P)>,

crates/stdx/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ backtrace = { version = "0.3.67", optional = true }
1717
always-assert = { version = "0.1.2", features = ["log"] }
1818
jod-thread = "0.1.2"
1919
crossbeam-channel = "0.5.5"
20+
hashbrown = { version = "0.14.0" }
2021
# Think twice before adding anything here
2122

2223
[target.'cfg(windows)'.dependencies]

0 commit comments

Comments
 (0)