Browse Source

Bump rustc-hash from 1.1.0 to 2.0.0 (#3887)

* 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>
pull/3888/head
dependabot[bot] 6 months ago committed by GitHub
parent
commit
bb2d028faa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 18
      Cargo.lock
  2. 2
      Cargo.toml
  3. 2
      core/profiler/Cargo.toml
  4. 8
      core/string/src/common.rs

18
Cargo.lock generated

@ -317,7 +317,7 @@ dependencies = [
"boa_macros", "boa_macros",
"indexmap", "indexmap",
"num-bigint", "num-bigint",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
"serde", "serde",
] ]
@ -390,7 +390,7 @@ dependencies = [
"portable-atomic", "portable-atomic",
"rand", "rand",
"regress", "regress",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
"ryu-js", "ryu-js",
"serde", "serde",
"serde_json", "serde_json",
@ -460,7 +460,7 @@ dependencies = [
"indexmap", "indexmap",
"once_cell", "once_cell",
"phf", "phf",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
"serde", "serde",
"static_assertions", "static_assertions",
] ]
@ -472,7 +472,7 @@ dependencies = [
"boa_engine", "boa_engine",
"boa_gc", "boa_gc",
"boa_macros", "boa_macros",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
] ]
[[package]] [[package]]
@ -507,7 +507,7 @@ dependencies = [
"num-bigint", "num-bigint",
"num-traits", "num-traits",
"regress", "regress",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
] ]
[[package]] [[package]]
@ -516,7 +516,7 @@ version = "0.18.0"
dependencies = [ dependencies = [
"measureme", "measureme",
"once_cell", "once_cell",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
] ]
[[package]] [[package]]
@ -526,7 +526,7 @@ dependencies = [
"boa_engine", "boa_engine",
"boa_gc", "boa_gc",
"indoc", "indoc",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
"textwrap", "textwrap",
] ]
@ -537,7 +537,7 @@ dependencies = [
"boa_macros", "boa_macros",
"fast-float", "fast-float",
"paste", "paste",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
"sptr", "sptr",
"static_assertions", "static_assertions",
] ]
@ -557,7 +557,7 @@ dependencies = [
"comfy-table", "comfy-table",
"phf", "phf",
"rayon", "rayon",
"rustc-hash 1.1.0", "rustc-hash 2.0.0",
"serde", "serde",
"serde_json", "serde_json",
"serde_repr", "serde_repr",

2
Cargo.toml

@ -66,7 +66,7 @@ phf = { version = "0.11.2", default-features = false }
pollster = "0.3.0" pollster = "0.3.0"
regex = "1.10.5" regex = "1.10.5"
regress = { version = "0.10.0", features = ["utf16"] } regress = { version = "0.10.0", features = ["utf16"] }
rustc-hash = { version = "1.1.0", default-features = false } rustc-hash = { version = "2.0.0", default-features = false }
serde_json = "1.0.119" serde_json = "1.0.119"
serde = "1.0.203" serde = "1.0.203"
static_assertions = "1.1.0" static_assertions = "1.1.0"

2
core/profiler/Cargo.toml

@ -16,7 +16,7 @@ profiler = ["dep:measureme", "dep:once_cell", "dep:rustc-hash"]
[dependencies] [dependencies]
measureme = { workspace = true, optional = true } measureme = { workspace = true, optional = true }
once_cell = { workspace = true, optional = true, features = ["std"] } once_cell = { workspace = true, optional = true, features = ["std"] }
rustc-hash = { workspace = true, optional = true } rustc-hash = { workspace = true, optional = true, features = ["std"] }
[lints] [lints]
workspace = true workspace = true

8
core/string/src/common.rs

@ -4,8 +4,8 @@ use crate::{tagged::Tagged, JsStr};
use super::JsString; use super::JsString;
use paste::paste; use paste::paste;
use rustc_hash::{FxHashMap, FxHasher}; use rustc_hash::{FxBuildHasher, FxHashMap};
use std::hash::BuildHasherDefault; use std::collections::HashMap;
macro_rules! well_known_statics { macro_rules! well_known_statics {
( $( $(#[$attr:meta])* ($name:ident, $string:literal) ),+$(,)? ) => { ( $( $(#[$attr:meta])* ($name:ident, $string:literal) ),+$(,)? ) => {
@ -216,9 +216,9 @@ const MAX_STATIC_LENGTH: usize = {
thread_local! { thread_local! {
/// Map from a string inside [`RAW_STATICS`] to its corresponding static index on `RAW_STATICS`. /// Map from a string inside [`RAW_STATICS`] to its corresponding static index on `RAW_STATICS`.
static RAW_STATICS_CACHE: FxHashMap<JsStr<'static>, usize> = { 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(), RAW_STATICS.len(),
BuildHasherDefault::<FxHasher>::default(), FxBuildHasher
); );
for (idx, &s) in RAW_STATICS.iter().enumerate() { for (idx, &s) in RAW_STATICS.iter().enumerate() {

Loading…
Cancel
Save