From 22f064cca7651eaf2980fcfa27618d99c633a589 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Tue, 10 Mar 2020 22:00:31 +0800 Subject: Add resolve_extern_path in DB --- crates/ra_hir_ty/src/test_db.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crates/ra_hir_ty/src') diff --git a/crates/ra_hir_ty/src/test_db.rs b/crates/ra_hir_ty/src/test_db.rs index c794f7b84..0be2fea4b 100644 --- a/crates/ra_hir_ty/src/test_db.rs +++ b/crates/ra_hir_ty/src/test_db.rs @@ -67,6 +67,13 @@ impl FileLoader for TestDB { fn relevant_crates(&self, file_id: FileId) -> Arc> { FileLoaderDelegate(self).relevant_crates(file_id) } + fn resolve_extern_path( + &self, + extern_id: ra_db::ExternSourceId, + relative_path: &RelativePath, + ) -> Option { + FileLoaderDelegate(self).resolve_extern_path(extern_id, relative_path) + } } impl TestDB { -- cgit v1.2.3