aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2020-10-05 16:12:37 +0100
committerLukas Wirth <[email protected]>2020-10-05 16:12:37 +0100
commit67e71619b95dc674c93bd11fb21b311bfc2fb95a (patch)
tree8233fcaa7f7efee86bafb884acfe696fa330d35b /crates/hir
parente5f252ade72fee4776396122dc91a17ddc185a66 (diff)
Make find_path_prefixed configurable
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/code_model.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 5721a66c4..5f35d9d3c 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -4,6 +4,7 @@ use std::{iter, sync::Arc};
4use arrayvec::ArrayVec; 4use arrayvec::ArrayVec;
5use base_db::{CrateId, Edition, FileId}; 5use base_db::{CrateId, Edition, FileId};
6use either::Either; 6use either::Either;
7use hir_def::find_path::PrefixKind;
7use hir_def::{ 8use hir_def::{
8 adt::ReprKind, 9 adt::ReprKind,
9 adt::StructKind, 10 adt::StructKind,
@@ -391,7 +392,7 @@ impl Module {
391 db: &dyn DefDatabase, 392 db: &dyn DefDatabase,
392 item: impl Into<ItemInNs>, 393 item: impl Into<ItemInNs>,
393 ) -> Option<ModPath> { 394 ) -> 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)
395 } 396 }
396} 397}
397 398