]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_def/src/find_path.rs
Rename `CrateDefMap` to `DefMap`
[rust.git] / crates / hir_def / src / find_path.rs
index 4a212d2919091b48e71b422e3c48184833a7c4f2..422a6eeb4a87d63e6b4ef97b4e4626cc775b1717 100644 (file)
@@ -4,7 +4,7 @@
 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 @@ fn can_start_with_std(&self) -> bool {
     }
 }
 
-fn check_self_super(def_map: &CrateDefMap, item: ItemInNs, from: ModuleId) -> Option<ModPath> {
+fn check_self_super(def_map: &DefMap, item: ItemInNs, from: ModuleId) -> Option<ModPath> {
     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()))