From fdd721e9ef4d330351769a7498d459a198bf0a0b Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Wed, 7 Apr 2021 19:35:24 +0200 Subject: Improve indexing of impls Store impls for e.g. &Foo with the ones for Foo instead of the big "other" bucket. This can improve performance and simplifies the HIR impl search a bit. --- crates/hir_ty/src/traits/chalk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_ty/src/traits') diff --git a/crates/hir_ty/src/traits/chalk.rs b/crates/hir_ty/src/traits/chalk.rs index b8c390b2e..cd511477b 100644 --- a/crates/hir_ty/src/traits/chalk.rs +++ b/crates/hir_ty/src/traits/chalk.rs @@ -101,7 +101,7 @@ impl<'a> chalk_solve::RustIrDatabase for ChalkContext<'a> { None } - let self_ty_fp = TyFingerprint::for_impl(&ty); + let self_ty_fp = TyFingerprint::for_trait_impl(&ty); let fps: &[TyFingerprint] = match binder_kind(&ty, binders) { Some(chalk_ir::TyVariableKind::Integer) => &ALL_INT_FPS, Some(chalk_ir::TyVariableKind::Float) => &ALL_FLOAT_FPS, -- cgit v1.2.3