Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/change.rs')
-rw-r--r--crates/hir-expand/src/change.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-expand/src/change.rs b/crates/hir-expand/src/change.rs
index f75f45983c..58808bc6c8 100644
--- a/crates/hir-expand/src/change.rs
+++ b/crates/hir-expand/src/change.rs
@@ -1,9 +1,9 @@
//! Defines a unit of change that can applied to the database to get the next
//! state. Changes are transactional.
-use base_db::{CrateGraphBuilder, FileChange, SourceRoot};
+use base_db::{CrateGraphBuilder, FileChange, SourceDatabase, SourceRoot};
use span::FileId;
-use crate::{db::ExpandDatabase, proc_macro::ProcMacrosBuilder};
+use crate::proc_macro::ProcMacrosBuilder;
#[derive(Debug, Default)]
pub struct ChangeWithProcMacros {
@@ -12,7 +12,7 @@ pub struct ChangeWithProcMacros {
}
impl ChangeWithProcMacros {
- pub fn apply(self, db: &mut impl ExpandDatabase) {
+ pub fn apply(self, db: &mut impl SourceDatabase) {
let crates_id_map = self.source_change.apply(db);
if let Some(proc_macros) = self.proc_macros {
proc_macros.build_in(