mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Rename CrateDefMap
to DefMap
This commit is contained in:
parent
08efb8a943
commit
57a82fb05b
10 changed files with 35 additions and 39 deletions
|
@ -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<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()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue