Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/lib.rs')
-rw-r--r--crates/ide-db/src/lib.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/ide-db/src/lib.rs b/crates/ide-db/src/lib.rs
index d3934e14ab..a433f184e7 100644
--- a/crates/ide-db/src/lib.rs
+++ b/crates/ide-db/src/lib.rs
@@ -78,6 +78,8 @@ pub type FileRange = FileRangeWrapper<FileId>;
#[salsa::db]
pub struct RootDatabase {
+ // FIXME: Revisit this commit now that we migrated to the new salsa, given we store arcs in this
+ // db directly now
// We use `ManuallyDrop` here because every codegen unit that contains a
// `&RootDatabase -> &dyn OtherDatabase` cast will instantiate its drop glue in the vtable,
// which duplicates `Weak::drop` and `Arc::drop` tens of thousands of times, which makes
@@ -234,14 +236,6 @@ impl RootDatabase {
// );
// hir::db::BodyWithSourceMapQuery.in_db_mut(self).set_lru_capacity(2048);
}
-
- pub fn snapshot(&self) -> Self {
- Self {
- storage: self.storage.clone(),
- files: self.files.clone(),
- crates_map: self.crates_map.clone(),
- }
- }
}
#[query_group::query_group]