aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/traits/chalk.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-04-09 11:45:34 +0100
committerGitHub <[email protected]>2021-04-09 11:45:34 +0100
commit99ed68a109c9f7e0dc6a82ccb5bf854d60943957 (patch)
treecb2e06b85f842fdc88ec367638b38736e247d200 /crates/hir_ty/src/traits/chalk.rs
parentb058cb3f6504b773b08db2b35749355065be2fa6 (diff)
parentfdd721e9ef4d330351769a7498d459a198bf0a0b (diff)
Merge #8406
8406: Improve indexing of impls r=flodiebold a=flodiebold 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. Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/traits/chalk.rs')
-rw-r--r--crates/hir_ty/src/traits/chalk.rs2
1 files changed, 1 insertions, 1 deletions
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<Interner> for ChalkContext<'a> {
101 None 101 None
102 } 102 }
103 103
104 let self_ty_fp = TyFingerprint::for_impl(&ty); 104 let self_ty_fp = TyFingerprint::for_trait_impl(&ty);
105 let fps: &[TyFingerprint] = match binder_kind(&ty, binders) { 105 let fps: &[TyFingerprint] = match binder_kind(&ty, binders) {
106 Some(chalk_ir::TyVariableKind::Integer) => &ALL_INT_FPS, 106 Some(chalk_ir::TyVariableKind::Integer) => &ALL_INT_FPS,
107 Some(chalk_ir::TyVariableKind::Float) => &ALL_FLOAT_FPS, 107 Some(chalk_ir::TyVariableKind::Float) => &ALL_FLOAT_FPS,