Skip to content

Commit 83ff8d9

Browse files
committed
perf(turbopack): Update rustc-hash from 1.1.0 to 2.1.0
1 parent 0f59ef0 commit 83ff8d9

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ rayon = "1.10.0"
182182
regex = "1.10.6"
183183
reqwest = { version = "=0.11.17", default-features = false }
184184
rstest = "0.16.0"
185-
rustc-hash = "1.1.0"
185+
rustc-hash = "2.1.0"
186186
semver = "1.0.16"
187187
serde = { version = "1.0.217", features = ["derive"] }
188188
serde_json = "1.0.138"
@@ -201,6 +201,7 @@ smallvec = { version = "1.13.1", features = [
201201
] }
202202
sourcemap = "9.0.0"
203203
strsim = "0.11.1"
204+
swc-rustc-hash = { package = "rustc-hash", version = "1.1.0" } # used with swc
204205
syn = "1.0.107"
205206
tempfile = "3.3.0"
206207
thread_local = "1.1.8"

crates/next-custom-transforms/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ once_cell = { workspace = true }
2424
pathdiff = { workspace = true }
2525
regex = "1.5"
2626
rustc-hash = { workspace = true }
27+
swc-rustc-hash = { workspace = true }
2728
serde = { workspace = true }
2829
serde_json = { workspace = true, features = ["preserve_order"] }
2930
sha1 = "0.10.1"

crates/next-custom-transforms/src/transforms/cjs_optimizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct State {
5050

5151
extra_stmts: Vec<Stmt>,
5252

53-
rename_map: FxHashMap<Id, Id>,
53+
rename_map: swc_rustc_hash::FxHashMap<Id, Id>,
5454

5555
/// Ignored identifiers for `obj` of [MemberExpr].
5656
ignored: FxHashSet<Id>,

0 commit comments

Comments
 (0)