From 958862093e83083b188427246323047a2c9e7bab Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 23 Nov 2019 14:43:38 +0300 Subject: Move docs to hir_def --- crates/ra_hir/src/test_db.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'crates/ra_hir/src/test_db.rs') diff --git a/crates/ra_hir/src/test_db.rs b/crates/ra_hir/src/test_db.rs index 1caa2e875..c369a80d4 100644 --- a/crates/ra_hir/src/test_db.rs +++ b/crates/ra_hir/src/test_db.rs @@ -14,7 +14,6 @@ use crate::{db, debug::HirDebugHelper}; ra_db::SourceDatabaseStorage, db::InternDatabaseStorage, db::AstDatabaseStorage, - db::DefDatabaseStorage, db::DefDatabase2Storage, db::HirDatabaseStorage )] -- cgit v1.2.3 From fc1e543f7abb69b8cab308410fa0a127950ee1c5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 23 Nov 2019 14:44:43 +0300 Subject: Get rid of DefDatabase2 --- crates/ra_hir/src/test_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/test_db.rs') diff --git a/crates/ra_hir/src/test_db.rs b/crates/ra_hir/src/test_db.rs index c369a80d4..03c7ac155 100644 --- a/crates/ra_hir/src/test_db.rs +++ b/crates/ra_hir/src/test_db.rs @@ -2,7 +2,7 @@ use std::{panic, sync::Arc}; -use hir_def::{db::DefDatabase2, ModuleId}; +use hir_def::{db::DefDatabase, ModuleId}; use hir_expand::diagnostics::DiagnosticSink; use parking_lot::Mutex; use ra_db::{salsa, CrateId, FileId, FileLoader, FileLoaderDelegate, RelativePath, SourceDatabase}; @@ -14,7 +14,7 @@ use crate::{db, debug::HirDebugHelper}; ra_db::SourceDatabaseStorage, db::InternDatabaseStorage, db::AstDatabaseStorage, - db::DefDatabase2Storage, + db::DefDatabaseStorage, db::HirDatabaseStorage )] #[derive(Debug, Default)] -- cgit v1.2.3 From 434f108adad75b7c5e25db745a9f9fefa5cdaa31 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 24 Nov 2019 18:48:29 +0300 Subject: Simplify --- crates/ra_hir/src/test_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src/test_db.rs') diff --git a/crates/ra_hir/src/test_db.rs b/crates/ra_hir/src/test_db.rs index 03c7ac155..efee2f658 100644 --- a/crates/ra_hir/src/test_db.rs +++ b/crates/ra_hir/src/test_db.rs @@ -80,7 +80,7 @@ impl TestDB { let crate_graph = self.crate_graph(); for krate in crate_graph.iter().next() { let crate_def_map = self.crate_def_map(krate); - for module_id in crate_def_map.modules() { + for (module_id, _) in crate_def_map.modules.iter() { let module_id = ModuleId { krate, module_id }; let module = crate::Module::from(module_id); module.diagnostics( -- cgit v1.2.3