From 17870a3e2c39770a99f9ab5ce090abbe1dc334d2 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 3 Sep 2020 23:18:23 +0300 Subject: Better API --- crates/hir_expand/src/test_db.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/hir_expand') diff --git a/crates/hir_expand/src/test_db.rs b/crates/hir_expand/src/test_db.rs index 86a5d867e..a0d1525b0 100644 --- a/crates/hir_expand/src/test_db.rs +++ b/crates/hir_expand/src/test_db.rs @@ -46,4 +46,7 @@ impl FileLoader for TestDB { fn relevant_crates(&self, file_id: FileId) -> Arc> { FileLoaderDelegate(self).relevant_crates(file_id) } + fn possible_sudmobules(&self, module_file: FileId) -> Vec<(FileId, String)> { + FileLoaderDelegate(self).possible_sudmobules(module_file) + } } -- cgit v1.2.3