From 46a4bfc47810865c587f20b0f2801925d3a3eac5 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Sun, 4 Jan 2026 19:58:30 +0100 Subject: [PATCH] [ty] Use default `HashSet` for `TypeCollector` (#22368) --- crates/ty_python_semantic/src/types/visitor.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ty_python_semantic/src/types/visitor.rs b/crates/ty_python_semantic/src/types/visitor.rs index 73a31c5f33..38ef7538ce 100644 --- a/crates/ty_python_semantic/src/types/visitor.rs +++ b/crates/ty_python_semantic/src/types/visitor.rs @@ -1,5 +1,7 @@ +use rustc_hash::FxHashSet; + use crate::{ - Db, FxIndexSet, + Db, types::{ BoundMethodType, BoundSuperType, BoundTypeVarInstance, CallableType, GenericAlias, IntersectionType, KnownBoundMethodType, KnownInstanceType, NominalInstanceType, @@ -277,7 +279,7 @@ pub(crate) fn walk_type_with_recursion_guard<'db>( } #[derive(Default, Debug)] -pub(crate) struct TypeCollector<'db>(RefCell>>); +pub(crate) struct TypeCollector<'db>(RefCell>>); impl<'db> TypeCollector<'db> { pub(crate) fn type_was_already_seen(&self, ty: Type<'db>) -> bool {