diff options
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/nameres/path_resolution.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir_def/src/nameres/path_resolution.rs b/crates/hir_def/src/nameres/path_resolution.rs index a6e0f64fc..bb8ccaa9d 100644 --- a/crates/hir_def/src/nameres/path_resolution.rs +++ b/crates/hir_def/src/nameres/path_resolution.rs | |||
@@ -13,8 +13,8 @@ | |||
13 | use std::iter::successors; | 13 | use std::iter::successors; |
14 | 14 | ||
15 | use base_db::Edition; | 15 | use base_db::Edition; |
16 | use hir_expand::name::Name; | ||
17 | use hir_expand::name; | 16 | use hir_expand::name; |
17 | use hir_expand::name::Name; | ||
18 | use test_utils::mark; | 18 | use test_utils::mark; |
19 | 19 | ||
20 | use crate::{ | 20 | use crate::{ |
@@ -65,7 +65,8 @@ impl ResolvePathResult { | |||
65 | impl DefMap { | 65 | impl DefMap { |
66 | pub(super) fn resolve_name_in_extern_prelude(&self, name: &Name) -> PerNs { | 66 | pub(super) fn resolve_name_in_extern_prelude(&self, name: &Name) -> PerNs { |
67 | if name == &name!(self) { | 67 | if name == &name!(self) { |
68 | return PerNs::types(ModuleId { krate: self.krate, local_id: self.root }.into(), | 68 | return PerNs::types( |
69 | ModuleId { krate: self.krate, local_id: self.root }.into(), | ||
69 | Visibility::Public, | 70 | Visibility::Public, |
70 | ); | 71 | ); |
71 | } | 72 | } |