Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2b10664

Browse files
committed
Only store item name instead of full path
1 parent 860628a commit 2b10664

File tree

2 files changed

+149
-214
lines changed

2 files changed

+149
-214
lines changed

crates/hir-def/src/find_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ fn calculate_best_path(
360360
prefer_no_std,
361361
)?;
362362
cov_mark::hit!(partially_imported);
363-
path.push_segment(info.path.segments.last()?.clone());
363+
path.push_segment(info.name.clone());
364364
Some(path)
365365
})
366366
});

0 commit comments

Comments
 (0)