aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2020-10-05 16:41:49 +0100
committerLukas Wirth <[email protected]>2020-10-05 16:41:49 +0100
commit86993310143c1347db6308a66c1f31a7a5644f56 (patch)
tree19154fee7049c1424ee3c043db12b5b6eb335963 /crates/hir
parent67e71619b95dc674c93bd11fb21b311bfc2fb95a (diff)
Make ImportPrefix a configuration option
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/code_model.rs3
-rw-r--r--crates/hir/src/lib.rs1
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 5f35d9d3c..a445a97b3 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -391,8 +391,9 @@ impl Module {
391 self, 391 self,
392 db: &dyn DefDatabase, 392 db: &dyn DefDatabase,
393 item: impl Into<ItemInNs>, 393 item: impl Into<ItemInNs>,
394 prefix_kind: PrefixKind,
394 ) -> Option<ModPath> { 395 ) -> Option<ModPath> {
395 hir_def::find_path::find_path_prefixed(db, item.into(), self.into(), PrefixKind::Plain) 396 hir_def::find_path::find_path_prefixed(db, item.into(), self.into(), prefix_kind)
396 } 397 }
397} 398}
398 399
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index b9d9c7e25..87084fa13 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -48,6 +48,7 @@ pub use hir_def::{
48 body::scope::ExprScopes, 48 body::scope::ExprScopes,
49 builtin_type::BuiltinType, 49 builtin_type::BuiltinType,
50 docs::Documentation, 50 docs::Documentation,
51 find_path::PrefixKind,
51 item_scope::ItemInNs, 52 item_scope::ItemInNs,
52 nameres::ModuleSource, 53 nameres::ModuleSource,
53 path::ModPath, 54 path::ModPath,