From 57a82fb05b46fd028c0b971dc6ce317db3682146 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 18 Jan 2021 20:18:05 +0100 Subject: Rename `CrateDefMap` to `DefMap` --- crates/hir_def/src/find_path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_def/src/find_path.rs') diff --git a/crates/hir_def/src/find_path.rs b/crates/hir_def/src/find_path.rs index 4a212d291..422a6eeb4 100644 --- a/crates/hir_def/src/find_path.rs +++ b/crates/hir_def/src/find_path.rs @@ -4,7 +4,7 @@ use hir_expand::name::{known, AsName, Name}; use rustc_hash::FxHashSet; use test_utils::mark; -use crate::nameres::CrateDefMap; +use crate::nameres::DefMap; use crate::{ db::DefDatabase, item_scope::ItemInNs, @@ -47,7 +47,7 @@ impl ModPath { } } -fn check_self_super(def_map: &CrateDefMap, item: ItemInNs, from: ModuleId) -> Option { +fn check_self_super(def_map: &DefMap, item: ItemInNs, from: ModuleId) -> Option { if item == ItemInNs::Types(from.into()) { // - if the item is the module we're in, use `self` Some(ModPath::from_segments(PathKind::Super(0), Vec::new())) -- cgit v1.2.3