aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/source_binder.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-26 19:56:07 +0000
committerAleksey Kladov <[email protected]>2019-11-26 19:56:07 +0000
commitbed6869865ccfc6e72be26cb2041d83ab5cdbe3c (patch)
tree94929e320d14ae8829f807ff83824fb94f44c375 /crates/ra_hir/src/source_binder.rs
parentcace49e9a79a5fe44cda63964412c5bdce7ee90d (diff)
Cleanup
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r--crates/ra_hir/src/source_binder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs
index 7c4ebd4b4..9f3e6c43f 100644
--- a/crates/ra_hir/src/source_binder.rs
+++ b/crates/ra_hir/src/source_binder.rs
@@ -389,14 +389,14 @@ impl SourceAnalyzer {
389 pub fn iterate_path_candidates<T>( 389 pub fn iterate_path_candidates<T>(
390 &self, 390 &self,
391 db: &impl HirDatabase, 391 db: &impl HirDatabase,
392 ty: Ty, 392 ty: &Type,
393 name: Option<&Name>, 393 name: Option<&Name>,
394 callback: impl FnMut(&Ty, AssocItem) -> Option<T>, 394 callback: impl FnMut(&Ty, AssocItem) -> Option<T>,
395 ) -> Option<T> { 395 ) -> Option<T> {
396 // There should be no inference vars in types passed here 396 // There should be no inference vars in types passed here
397 // FIXME check that? 397 // FIXME check that?
398 // FIXME replace Unknown by bound vars here 398 // FIXME replace Unknown by bound vars here
399 let canonical = crate::ty::Canonical { value: ty, num_vars: 0 }; 399 let canonical = crate::ty::Canonical { value: ty.ty.value.clone(), num_vars: 0 };
400 method_resolution::iterate_method_candidates( 400 method_resolution::iterate_method_candidates(
401 &canonical, 401 &canonical,
402 db, 402 db,