diff options
author | Kirill Bulatov <[email protected]> | 2021-03-20 20:54:04 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-20 20:55:34 +0000 |
commit | 879432452d15d4e9c373a6233a0cd15e22f20ef3 (patch) | |
tree | 918eb815d2da4758d00dfac387b805de6a771c11 /crates/ide_db/src/helpers | |
parent | a631108d2dd0596b079b59efa37b1af00d7555db (diff) |
Docs
Diffstat (limited to 'crates/ide_db/src/helpers')
-rw-r--r-- | crates/ide_db/src/helpers/import_assets.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_db/src/helpers/import_assets.rs b/crates/ide_db/src/helpers/import_assets.rs index ae234eddc..6995c3e19 100644 --- a/crates/ide_db/src/helpers/import_assets.rs +++ b/crates/ide_db/src/helpers/import_assets.rs | |||
@@ -252,7 +252,7 @@ fn path_applicable_imports( | |||
252 | 252 | ||
253 | match &path_candidate.qualifier { | 253 | match &path_candidate.qualifier { |
254 | None => { | 254 | None => { |
255 | items_locator::locate_for_name( | 255 | items_locator::items_with_name( |
256 | sema, | 256 | sema, |
257 | current_crate, | 257 | current_crate, |
258 | path_candidate.name.clone(), | 258 | path_candidate.name.clone(), |
@@ -271,7 +271,7 @@ fn path_applicable_imports( | |||
271 | let unresolved_qualifier = | 271 | let unresolved_qualifier = |
272 | path_to_string_stripping_turbo_fish(&first_segment_unresolved.full_qualifier); | 272 | path_to_string_stripping_turbo_fish(&first_segment_unresolved.full_qualifier); |
273 | let unresolved_first_segment = first_segment_unresolved.fist_segment.text(); | 273 | let unresolved_first_segment = first_segment_unresolved.fist_segment.text(); |
274 | items_locator::locate_for_name( | 274 | items_locator::items_with_name( |
275 | sema, | 275 | sema, |
276 | current_crate, | 276 | current_crate, |
277 | path_candidate.name.clone(), | 277 | path_candidate.name.clone(), |
@@ -416,7 +416,7 @@ fn trait_applicable_items( | |||
416 | let db = sema.db; | 416 | let db = sema.db; |
417 | 417 | ||
418 | let mut required_assoc_items = FxHashSet::default(); | 418 | let mut required_assoc_items = FxHashSet::default(); |
419 | let trait_candidates = items_locator::locate_for_name( | 419 | let trait_candidates = items_locator::items_with_name( |
420 | sema, | 420 | sema, |
421 | current_crate, | 421 | current_crate, |
422 | trait_candidate.assoc_item_name.clone(), | 422 | trait_candidate.assoc_item_name.clone(), |