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.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-expand/src/change.rs b/crates/hir-expand/src/change.rs index 3959741e6f..22dc2cbd71 100644 --- a/crates/hir-expand/src/change.rs +++ b/crates/hir-expand/src/change.rs @@ -2,7 +2,6 @@ //! state. Changes are transactional. use base_db::{CrateGraphBuilder, FileChange, SourceRoot, salsa::Durability}; use span::FileId; -use triomphe::Arc; use crate::{db::ExpandDatabase, proc_macro::ProcMacrosBuilder}; @@ -16,12 +15,13 @@ impl ChangeWithProcMacros { pub fn apply(self, db: &mut impl ExpandDatabase) { let crates_id_map = self.source_change.apply(db); if let Some(proc_macros) = self.proc_macros { - let proc_macros = proc_macros.build( + proc_macros.build_in( + db, + Durability::HIGH, crates_id_map .as_ref() .expect("cannot set proc macros without setting the crate graph too"), ); - db.set_proc_macros_with_durability(Arc::new(proc_macros), Durability::HIGH); } } |