Skip to content

Commit 67e7161

Browse files
committed
Make find_path_prefixed configurable
1 parent e5f252a commit 67e7161

File tree

2 files changed

+140
-110
lines changed

2 files changed

+140
-110
lines changed

crates/hir/src/code_model.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::{iter, sync::Arc};
44
use arrayvec::ArrayVec;
55
use base_db::{CrateId, Edition, FileId};
66
use either::Either;
7+
use hir_def::find_path::PrefixKind;
78
use hir_def::{
89
adt::ReprKind,
910
adt::StructKind,
@@ -391,7 +392,7 @@ impl Module {
391392
db: &dyn DefDatabase,
392393
item: impl Into<ItemInNs>,
393394
) -> Option<ModPath> {
394-
hir_def::find_path::find_path_prefixed(db, item.into(), self.into())
395+
hir_def::find_path::find_path_prefixed(db, item.into(), self.into(), PrefixKind::Plain)
395396
}
396397
}
397398

0 commit comments

Comments
 (0)