diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-05 16:23:22 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-05 16:23:22 +0100 |
commit | f133159ec0b5037b58a26f52f8b37c545872dc7d (patch) | |
tree | 49122142ee70da554fd5bf87ee058a7103d90773 /crates/ra_hir_expand/src/test_db.rs | |
parent | 4029628f15c612182ad9da1c652078f9df62f5cf (diff) | |
parent | bbb40d746368eb6a38498649a723c7ead0ef8136 (diff) |
Merge #4760
4760: Minimize FileLoader interface r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_expand/src/test_db.rs')
-rw-r--r-- | crates/ra_hir_expand/src/test_db.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/ra_hir_expand/src/test_db.rs b/crates/ra_hir_expand/src/test_db.rs index 765a2f6d1..fdf225f55 100644 --- a/crates/ra_hir_expand/src/test_db.rs +++ b/crates/ra_hir_expand/src/test_db.rs | |||
@@ -5,7 +5,7 @@ use std::{ | |||
5 | sync::{Arc, Mutex}, | 5 | sync::{Arc, Mutex}, |
6 | }; | 6 | }; |
7 | 7 | ||
8 | use ra_db::{salsa, CrateId, ExternSourceId, FileId, FileLoader, FileLoaderDelegate, RelativePath}; | 8 | use ra_db::{salsa, CrateId, FileId, FileLoader, FileLoaderDelegate}; |
9 | 9 | ||
10 | #[salsa::database( | 10 | #[salsa::database( |
11 | ra_db::SourceDatabaseExtStorage, | 11 | ra_db::SourceDatabaseExtStorage, |
@@ -47,11 +47,4 @@ impl FileLoader for TestDB { | |||
47 | fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> { | 47 | fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> { |
48 | FileLoaderDelegate(self).relevant_crates(file_id) | 48 | FileLoaderDelegate(self).relevant_crates(file_id) |
49 | } | 49 | } |
50 | fn resolve_extern_path( | ||
51 | &self, | ||
52 | anchor: ExternSourceId, | ||
53 | relative_path: &RelativePath, | ||
54 | ) -> Option<FileId> { | ||
55 | FileLoaderDelegate(self).resolve_extern_path(anchor, relative_path) | ||
56 | } | ||
57 | } | 50 | } |