Skip to content

Commit

Permalink
Bump rustc-hash from 1.1.0 to 2.0.0 (#3887)
Browse files Browse the repository at this point in the history
* Bump rustc-hash from 1.1.0 to 2.0.0

Bumps [rustc-hash](https://github.com/rust-lang/rustc-hash) from 1.1.0 to 2.0.0.
- [Changelog](https://github.com/rust-lang/rustc-hash/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/rustc-hash/commits)

---
updated-dependencies:
- dependency-name: rustc-hash
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix build

* fix profiler build

* cargo clippy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jedel1043 <jedel0124@gmail.com>
Co-authored-by: José Julián Espina <julian.espina@canonical.com>
  • Loading branch information
3 people authored Jul 1, 2024
1 parent 1a01d1f commit bb2d028
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ once_cell = { version = "1.19.0", default-features = false }
phf = { version = "0.11.2", default-features = false }
pollster = "0.3.0"
regex = "1.10.5"
regress = { version="0.10.0", features = ["utf16"]}
rustc-hash = { version = "1.1.0", default-features = false }
regress = { version = "0.10.0", features = ["utf16"] }
rustc-hash = { version = "2.0.0", default-features = false }
serde_json = "1.0.119"
serde = "1.0.203"
static_assertions = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion core/profiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ profiler = ["dep:measureme", "dep:once_cell", "dep:rustc-hash"]
[dependencies]
measureme = { workspace = true, optional = true }
once_cell = { workspace = true, optional = true, features = ["std"] }
rustc-hash = { workspace = true, optional = true }
rustc-hash = { workspace = true, optional = true, features = ["std"] }

[lints]
workspace = true
Expand Down
8 changes: 4 additions & 4 deletions core/string/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::{tagged::Tagged, JsStr};

use super::JsString;
use paste::paste;
use rustc_hash::{FxHashMap, FxHasher};
use std::hash::BuildHasherDefault;
use rustc_hash::{FxBuildHasher, FxHashMap};
use std::collections::HashMap;

macro_rules! well_known_statics {
( $( $(#[$attr:meta])* ($name:ident, $string:literal) ),+$(,)? ) => {
Expand Down Expand Up @@ -216,9 +216,9 @@ const MAX_STATIC_LENGTH: usize = {
thread_local! {
/// Map from a string inside [`RAW_STATICS`] to its corresponding static index on `RAW_STATICS`.
static RAW_STATICS_CACHE: FxHashMap<JsStr<'static>, usize> = {
let mut constants = FxHashMap::with_capacity_and_hasher(
let mut constants = HashMap::with_capacity_and_hasher(
RAW_STATICS.len(),
BuildHasherDefault::<FxHasher>::default(),
FxBuildHasher
);

for (idx, &s) in RAW_STATICS.iter().enumerate() {
Expand Down

0 comments on commit bb2d028

Please sign in to comment.