diff options
author | Lukas Wirth <[email protected]> | 2020-10-05 16:12:37 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-10-05 16:12:37 +0100 |
commit | 67e71619b95dc674c93bd11fb21b311bfc2fb95a (patch) | |
tree | 8233fcaa7f7efee86bafb884acfe696fa330d35b /crates/hir | |
parent | e5f252ade72fee4776396122dc91a17ddc185a66 (diff) |
Make find_path_prefixed configurable
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/code_model.rs | 3 |
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}; | |||
4 | use arrayvec::ArrayVec; | 4 | use arrayvec::ArrayVec; |
5 | use base_db::{CrateId, Edition, FileId}; | 5 | use base_db::{CrateId, Edition, FileId}; |
6 | use either::Either; | 6 | use either::Either; |
7 | use hir_def::find_path::PrefixKind; | ||
7 | use hir_def::{ | 8 | use 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 | ||