]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_ty/src/tests.rs
Rename `CrateDefMap` to `DefMap`
[rust.git] / crates / hir_ty / src / tests.rs
index 5ff75532148a2ee5d2fac44dc5191298780b6c00..4a3fcea8dc41df6535e9bc016db04fa4c4fb36bb 100644 (file)
@@ -18,7 +18,7 @@
     db::DefDatabase,
     item_scope::ItemScope,
     keys,
-    nameres::CrateDefMap,
+    nameres::DefMap,
     AssocItemId, DefWithBodyId, LocalModuleId, Lookup, ModuleDefId,
 };
 use hir_expand::{db::AstDatabase, InFile};
@@ -221,7 +221,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String {
 
 fn visit_module(
     db: &TestDB,
-    crate_def_map: &CrateDefMap,
+    crate_def_map: &DefMap,
     module_id: LocalModuleId,
     cb: &mut dyn FnMut(DefWithBodyId),
 ) {
@@ -249,7 +249,7 @@ fn visit_module(
 
     fn visit_scope(
         db: &TestDB,
-        crate_def_map: &CrateDefMap,
+        crate_def_map: &DefMap,
         scope: &ItemScope,
         cb: &mut dyn FnMut(DefWithBodyId),
     ) {