From bae8ddfb8a682d3bceb1daf6967d61b3a62d4ffd Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 19 Sep 2025 13:24:45 -0400
Subject: [PATCH] Update Rust crate hashbrown to 0.16.0 (#20399)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs
from Renovate will soon appear from 'Mend'. Learn more
[here](https://redirect.github.com/renovatebot/renovate/discussions/37842).
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [hashbrown](https://redirect.github.com/rust-lang/hashbrown) |
workspace.dependencies | minor | `0.15.0` -> `0.16.0` |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
rust-lang/hashbrown (hashbrown)
###
[`v0.16.0`](https://redirect.github.com/rust-lang/hashbrown/blob/HEAD/CHANGELOG.md#0160---2025-08-28)
[Compare
Source](https://redirect.github.com/rust-lang/hashbrown/compare/v0.15.5...v0.16.0)
##### Changed
- Bump foldhash, the default hasher, to 0.2.0.
- Replaced `DefaultHashBuilder` with a newtype wrapper around `foldhash`
instead
of re-exporting it directly.
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser
Co-authored-by: David Peter
Co-authored-by: Ibraheem Ahmed
---
Cargo.lock | 31 ++++++++++++-------
Cargo.toml | 4 +--
.../types/property_tests/type_generation.rs | 4 +--
3 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 4e46c0525d..44a1ba5de5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -956,7 +956,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -1042,7 +1042,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -1168,9 +1168,9 @@ dependencies = [
[[package]]
name = "get-size-derive2"
-version = "0.6.2"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75a17a226478b2e8294ded60782c03efe54476aa8cd1371d0e5ad9d1071e74e0"
+checksum = "b5a443e77201a230c25f0c11574e9b20e5705f749520e0f30ab0d0974fb1a794"
dependencies = [
"attribute-derive",
"quote",
@@ -1179,13 +1179,13 @@ dependencies = [
[[package]]
name = "get-size2"
-version = "0.6.2"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5697765925a05c9d401dd04a93dfd662d336cc25fdcc3301220385a1ffcfdde5"
+checksum = "0594e2a78d082f2f8b1615c728391c6a5277f6c017474a7249934fc735945d55"
dependencies = [
"compact_str",
"get-size-derive2",
- "hashbrown 0.15.5",
+ "hashbrown 0.16.0",
"smallvec",
]
@@ -1280,6 +1280,15 @@ dependencies = [
"foldhash",
]
+[[package]]
+name = "hashbrown"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
+dependencies = [
+ "equivalent",
+]
+
[[package]]
name = "hashlink"
version = "0.10.0"
@@ -2994,7 +3003,7 @@ dependencies = [
"fern",
"glob",
"globset",
- "hashbrown 0.15.5",
+ "hashbrown 0.16.0",
"imperative",
"insta",
"is-macro",
@@ -3435,7 +3444,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3830,7 +3839,7 @@ dependencies = [
"getrandom 0.3.3",
"once_cell",
"rustix",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.0",
]
[[package]]
@@ -4303,7 +4312,7 @@ dependencies = [
"drop_bomb",
"get-size2",
"glob",
- "hashbrown 0.15.5",
+ "hashbrown 0.16.0",
"indexmap",
"insta",
"itertools 0.14.0",
diff --git a/Cargo.toml b/Cargo.toml
index db549efe17..9d3963b9e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -86,7 +86,7 @@ etcetera = { version = "0.10.0" }
fern = { version = "0.7.0" }
filetime = { version = "0.2.23" }
getrandom = { version = "0.3.1" }
-get-size2 = { version = "0.6.2", features = [
+get-size2 = { version = "0.6.3", features = [
"derive",
"smallvec",
"hashbrown",
@@ -95,7 +95,7 @@ get-size2 = { version = "0.6.2", features = [
glob = { version = "0.3.1" }
globset = { version = "0.4.14" }
globwalk = { version = "0.9.1" }
-hashbrown = { version = "0.15.0", default-features = false, features = [
+hashbrown = { version = "0.16.0", default-features = false, features = [
"raw-entry",
"equivalent",
"inline-more",
diff --git a/crates/ty_python_semantic/src/types/property_tests/type_generation.rs b/crates/ty_python_semantic/src/types/property_tests/type_generation.rs
index f46a1cb345..52136e4046 100644
--- a/crates/ty_python_semantic/src/types/property_tests/type_generation.rs
+++ b/crates/ty_python_semantic/src/types/property_tests/type_generation.rs
@@ -7,9 +7,9 @@ use crate::types::{
Parameters, Signature, SpecialFormType, SubclassOfType, Type, UnionType,
};
use crate::{Db, module_resolver::KnownModule};
-use hashbrown::HashSet;
use quickcheck::{Arbitrary, Gen};
use ruff_python_ast::name::Name;
+use rustc_hash::FxHashSet;
/// A test representation of a type that can be transformed unambiguously into a real Type,
/// given a db.
@@ -377,7 +377,7 @@ fn arbitrary_type(g: &mut Gen, size: u32, fully_static: bool) -> Ty {
fn arbitrary_parameter_list(g: &mut Gen, size: u32, fully_static: bool) -> Vec {
let mut params: Vec = vec![];
- let mut used_names = HashSet::new();
+ let mut used_names = FxHashSet::default();
// First, choose the number of parameters to generate.
for _ in 0..*g.choose(&[0, 1, 2, 3, 4, 5]).unwrap() {