aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/method_resolution.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
-rw-r--r--crates/hir_ty/src/method_resolution.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs
index 57f37ef4b..be72c4a1c 100644
--- a/crates/hir_ty/src/method_resolution.rs
+++ b/crates/hir_ty/src/method_resolution.rs
@@ -443,8 +443,7 @@ fn iterate_method_candidates_with_autoref(
443 } 443 }
444 let refed = Canonical { 444 let refed = Canonical {
445 kinds: deref_chain[0].kinds.clone(), 445 kinds: deref_chain[0].kinds.clone(),
446 value: TyKind::Ref(Mutability::Not, Substs::single(deref_chain[0].value.clone())) 446 value: TyKind::Ref(Mutability::Not, deref_chain[0].value.clone()).intern(&Interner),
447 .intern(&Interner),
448 }; 447 };
449 if iterate_method_candidates_by_receiver( 448 if iterate_method_candidates_by_receiver(
450 &refed, 449 &refed,
@@ -460,8 +459,7 @@ fn iterate_method_candidates_with_autoref(
460 } 459 }
461 let ref_muted = Canonical { 460 let ref_muted = Canonical {
462 kinds: deref_chain[0].kinds.clone(), 461 kinds: deref_chain[0].kinds.clone(),
463 value: TyKind::Ref(Mutability::Mut, Substs::single(deref_chain[0].value.clone())) 462 value: TyKind::Ref(Mutability::Mut, deref_chain[0].value.clone()).intern(&Interner),
464 .intern(&Interner),
465 }; 463 };
466 if iterate_method_candidates_by_receiver( 464 if iterate_method_candidates_by_receiver(
467 &ref_muted, 465 &ref_muted,