aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/hir_def/src/nameres/path_resolution.rs5
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 @@
13use std::iter::successors; 13use std::iter::successors;
14 14
15use base_db::Edition; 15use base_db::Edition;
16use hir_expand::name::Name;
17use hir_expand::name; 16use hir_expand::name;
17use hir_expand::name::Name;
18use test_utils::mark; 18use test_utils::mark;
19 19
20use crate::{ 20use crate::{
@@ -65,7 +65,8 @@ impl ResolvePathResult {
65impl DefMap { 65impl 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 }