Update Rust crate hashbrown to 0.15.0 (#13652)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
renovate[bot] 2024-10-07 08:50:59 +02:00 committed by GitHub
parent 824def2194
commit 38d872ea4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 54 additions and 42 deletions

25
Cargo.lock generated
View File

@ -36,12 +36,6 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "allocator-api2"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
[[package]] [[package]]
name = "android-tzdata" name = "android-tzdata"
version = "0.1.1" version = "0.1.1"
@ -714,7 +708,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"hashbrown", "hashbrown 0.14.5",
"lock_api", "lock_api",
"once_cell", "once_cell",
"parking_lot_core", "parking_lot_core",
@ -728,7 +722,7 @@ checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"crossbeam-utils", "crossbeam-utils",
"hashbrown", "hashbrown 0.14.5",
"lock_api", "lock_api",
"once_cell", "once_cell",
"parking_lot_core", "parking_lot_core",
@ -1026,16 +1020,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
dependencies = [ dependencies = [
"ahash", "ahash",
"allocator-api2",
] ]
[[package]]
name = "hashbrown"
version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
[[package]] [[package]]
name = "hashlink" name = "hashlink"
version = "0.9.1" version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af"
dependencies = [ dependencies = [
"hashbrown", "hashbrown 0.14.5",
] ]
[[package]] [[package]]
@ -1127,7 +1126,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc9da1a252bd44cd341657203722352efc9bc0c847d06ea6d2dc1cd1135e0a01" checksum = "fc9da1a252bd44cd341657203722352efc9bc0c847d06ea6d2dc1cd1135e0a01"
dependencies = [ dependencies = [
"ahash", "ahash",
"hashbrown", "hashbrown 0.14.5",
] ]
[[package]] [[package]]
@ -1147,7 +1146,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5"
dependencies = [ dependencies = [
"equivalent", "equivalent",
"hashbrown", "hashbrown 0.14.5",
"serde", "serde",
] ]
@ -2081,7 +2080,7 @@ dependencies = [
"camino", "camino",
"compact_str", "compact_str",
"countme", "countme",
"hashbrown", "hashbrown 0.15.0",
"insta", "insta",
"itertools 0.13.0", "itertools 0.13.0",
"ordermap", "ordermap",

View File

@ -72,7 +72,10 @@ filetime = { version = "0.2.23" }
glob = { version = "0.3.1" } glob = { version = "0.3.1" }
globset = { version = "0.4.14" } globset = { version = "0.4.14" }
globwalk = { version = "0.9.1" } globwalk = { version = "0.9.1" }
hashbrown = "0.14.3" hashbrown = { version = "0.15.0", default-features = false, features = [
"raw-entry",
"inline-more",
] }
ignore = { version = "0.4.22" } ignore = { version = "0.4.22" }
imara-diff = { version = "0.1.5" } imara-diff = { version = "0.1.5" }
imperative = { version = "1.0.4" } imperative = { version = "1.0.4" }
@ -90,7 +93,7 @@ libcst = { version = "1.1.0", default-features = false }
log = { version = "0.4.17" } log = { version = "0.4.17" }
lsp-server = { version = "0.7.6" } lsp-server = { version = "0.7.6" }
lsp-types = { git = "https://github.com/astral-sh/lsp-types.git", rev = "3512a9f", features = [ lsp-types = { git = "https://github.com/astral-sh/lsp-types.git", rev = "3512a9f", features = [
"proposed", "proposed",
] } ] }
matchit = { version = "0.8.1" } matchit = { version = "0.8.1" }
memchr = { version = "2.7.1" } memchr = { version = "2.7.1" }
@ -120,7 +123,7 @@ serde-wasm-bindgen = { version = "0.6.4" }
serde_json = { version = "1.0.113" } serde_json = { version = "1.0.113" }
serde_test = { version = "1.0.152" } serde_test = { version = "1.0.152" }
serde_with = { version = "3.6.0", default-features = false, features = [ serde_with = { version = "3.6.0", default-features = false, features = [
"macros", "macros",
] } ] }
shellexpand = { version = "3.0.0" } shellexpand = { version = "3.0.0" }
similar = { version = "2.4.0", features = ["inline"] } similar = { version = "2.4.0", features = ["inline"] }
@ -137,7 +140,10 @@ toml = { version = "0.8.11" }
tracing = { version = "0.1.40" } tracing = { version = "0.1.40" }
tracing-flame = { version = "0.2.0" } tracing-flame = { version = "0.2.0" }
tracing-indicatif = { version = "0.3.6" } tracing-indicatif = { version = "0.3.6" }
tracing-subscriber = { version = "0.3.18", default-features = false, features = ["env-filter", "fmt"] } tracing-subscriber = { version = "0.3.18", default-features = false, features = [
"env-filter",
"fmt",
] }
tracing-tree = { version = "0.4.0" } tracing-tree = { version = "0.4.0" }
typed-arena = { version = "2.0.2" } typed-arena = { version = "2.0.2" }
unic-ucd-category = { version = "0.9" } unic-ucd-category = { version = "0.9" }
@ -148,10 +154,10 @@ unicode-normalization = { version = "0.1.23" }
ureq = { version = "2.9.6" } ureq = { version = "2.9.6" }
url = { version = "2.5.0" } url = { version = "2.5.0" }
uuid = { version = "1.6.1", features = [ uuid = { version = "1.6.1", features = [
"v4", "v4",
"fast-rng", "fast-rng",
"macro-diagnostics", "macro-diagnostics",
"js", "js",
] } ] }
walkdir = { version = "2.3.2" } walkdir = { version = "2.3.2" }
wasm-bindgen = { version = "0.2.92" } wasm-bindgen = { version = "0.2.92" }
@ -162,7 +168,10 @@ zip = { version = "0.6.6", default-features = false }
[workspace.lints.rust] [workspace.lints.rust]
unsafe_code = "warn" unsafe_code = "warn"
unreachable_pub = "warn" unreachable_pub = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fuzzing)", "cfg(codspeed)"] } unexpected_cfgs = { level = "warn", check-cfg = [
"cfg(fuzzing)",
"cfg(codspeed)",
] }
[workspace.lints.clippy] [workspace.lints.clippy]
pedantic = { level = "warn", priority = -2 } pedantic = { level = "warn", priority = -2 }
@ -245,23 +254,23 @@ windows-archive = ".zip"
unix-archive = ".tar.gz" unix-archive = ".tar.gz"
# Target platforms to build apps for (Rust target-triple syntax) # Target platforms to build apps for (Rust target-triple syntax)
targets = [ targets = [
"aarch64-apple-darwin", "aarch64-apple-darwin",
"aarch64-pc-windows-msvc", "aarch64-pc-windows-msvc",
"aarch64-unknown-linux-gnu", "aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl", "aarch64-unknown-linux-musl",
"arm-unknown-linux-musleabihf", "arm-unknown-linux-musleabihf",
"armv7-unknown-linux-gnueabihf", "armv7-unknown-linux-gnueabihf",
"armv7-unknown-linux-musleabihf", "armv7-unknown-linux-musleabihf",
"i686-pc-windows-msvc", "i686-pc-windows-msvc",
"i686-unknown-linux-gnu", "i686-unknown-linux-gnu",
"i686-unknown-linux-musl", "i686-unknown-linux-musl",
"powerpc64-unknown-linux-gnu", "powerpc64-unknown-linux-gnu",
"powerpc64le-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu",
"s390x-unknown-linux-gnu", "s390x-unknown-linux-gnu",
"x86_64-apple-darwin", "x86_64-apple-darwin",
"x86_64-pc-windows-msvc", "x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu", "x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl", "x86_64-unknown-linux-musl",
] ]
# Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true) # Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true)
auto-includes = false auto-includes = false
@ -280,7 +289,11 @@ local-artifacts-jobs = ["./build-binaries", "./build-docker"]
# Publish jobs to run in CI # Publish jobs to run in CI
publish-jobs = ["./publish-pypi", "./publish-wasm"] publish-jobs = ["./publish-pypi", "./publish-wasm"]
# Post-announce jobs to run in CI # Post-announce jobs to run in CI
post-announce-jobs = ["./notify-dependents", "./publish-docs", "./publish-playground"] post-announce-jobs = [
"./notify-dependents",
"./publish-docs",
"./publish-playground",
]
# Custom permissions for GitHub Jobs # Custom permissions for GitHub Jobs
github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" }, "publish-wasm" = { contents = "read", id-token = "write", packages = "write" } } github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" }, "publish-wasm" = { contents = "read", id-token = "write", packages = "write" } }
# Whether to install an updater program # Whether to install an updater program

View File

@ -1,7 +1,7 @@
use std::iter::FusedIterator; use std::iter::FusedIterator;
use std::sync::Arc; use std::sync::Arc;
use rustc_hash::FxHashMap; use rustc_hash::{FxBuildHasher, FxHashMap};
use salsa::plumbing::AsId; use salsa::plumbing::AsId;
use ruff_db::files::File; use ruff_db::files::File;
@ -31,7 +31,7 @@ pub(crate) use self::use_def::{
BindingWithConstraints, BindingWithConstraintsIterator, DeclarationsIterator, BindingWithConstraints, BindingWithConstraintsIterator, DeclarationsIterator,
}; };
type SymbolMap = hashbrown::HashMap<ScopedSymbolId, (), ()>; type SymbolMap = hashbrown::HashMap<ScopedSymbolId, (), FxBuildHasher>;
/// Returns the semantic index for `file`. /// Returns the semantic index for `file`.
/// ///