aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorkazatsuyu <[email protected]>2021-01-22 13:52:04 +0000
committerkazatsuyu <[email protected]>2021-01-22 13:52:04 +0000
commit0fb4544403f67fd4f9046532cff70f776d5ba562 (patch)
tree686192b1ec0a8b68271eec5034db8887fc29fb87 /crates/hir_def
parente52589e3a72ed57d47956d16d90f4b15fc7408f0 (diff)
cargo fmt
Diffstat (limited to 'crates/hir_def')
-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 }