Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/test_db.rs')
-rw-r--r--crates/hir-ty/src/test_db.rs27
1 files changed, 1 insertions, 26 deletions
diff --git a/crates/hir-ty/src/test_db.rs b/crates/hir-ty/src/test_db.rs
index 5f1bd57af8..693d39f596 100644
--- a/crates/hir-ty/src/test_db.rs
+++ b/crates/hir-ty/src/test_db.rs
@@ -4,11 +4,10 @@ use std::{fmt, panic, sync::Mutex};
use base_db::{
CrateGraphBuilder, CratesMap, FileSourceRootInput, FileText, RootQueryDb, SourceDatabase,
- SourceRoot, SourceRootId, SourceRootInput, Upcast,
+ SourceRoot, SourceRootId, SourceRootInput,
};
use hir_def::{ModuleId, db::DefDatabase};
-use hir_expand::db::ExpandDatabase;
use rustc_hash::FxHashMap;
use salsa::{AsDynDatabase, Durability};
use span::{EditionedFileId, FileId};
@@ -47,30 +46,6 @@ impl fmt::Debug for TestDB {
}
}
-impl Upcast<dyn ExpandDatabase> for TestDB {
- fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
- self
- }
-}
-
-impl Upcast<dyn DefDatabase> for TestDB {
- fn upcast(&self) -> &(dyn DefDatabase + 'static) {
- self
- }
-}
-
-impl Upcast<dyn RootQueryDb> for TestDB {
- fn upcast(&self) -> &(dyn RootQueryDb + 'static) {
- self
- }
-}
-
-impl Upcast<dyn SourceDatabase> for TestDB {
- fn upcast(&self) -> &(dyn SourceDatabase + 'static) {
- self
- }
-}
-
#[salsa::db]
impl SourceDatabase for TestDB {
fn file_text(&self, file_id: base_db::FileId) -> FileText {