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() {