diff options
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 8067b8415..ac390c5db 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -642,7 +642,11 @@ impl ItemMap { | |||
642 | log::debug!("resolving {:?} in other crate", path); | 642 | log::debug!("resolving {:?} in other crate", path); |
643 | let item_map = db.item_map(module.krate); | 643 | let item_map = db.item_map(module.krate); |
644 | let (def, s) = item_map.resolve_path(db, *module, &path); | 644 | let (def, s) = item_map.resolve_path(db, *module, &path); |
645 | return ResolvePathResult::with(def, ReachedFixedPoint::Yes, s); | 645 | return ResolvePathResult::with( |
646 | def, | ||
647 | ReachedFixedPoint::Yes, | ||
648 | s.map(|s| s + i), | ||
649 | ); | ||
646 | } | 650 | } |
647 | 651 | ||
648 | match self[module.module_id].items.get(&segment.name) { | 652 | match self[module.module_id].items.get(&segment.name) { |