Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/nameres/tests/incremental.rs')
-rw-r--r--crates/hir_def/src/nameres/tests/incremental.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir_def/src/nameres/tests/incremental.rs b/crates/hir_def/src/nameres/tests/incremental.rs
index 7bf152e26c..b2828831a1 100644
--- a/crates/hir_def/src/nameres/tests/incremental.rs
+++ b/crates/hir_def/src/nameres/tests/incremental.rs
@@ -1,6 +1,6 @@
use std::sync::Arc;
-use base_db::{salsa::SweepStrategy, SourceDatabaseExt};
+use base_db::SourceDatabaseExt;
use crate::{AdtId, ModuleDefId};
@@ -199,8 +199,7 @@ pub type Ty = ();
}
// Delete the parse tree.
- let sweep = SweepStrategy::default().discard_values().sweep_all_revisions();
- base_db::ParseQuery.in_db(&db).sweep(sweep);
+ base_db::ParseQuery.in_db(&db).purge();
{
let events = db.log_executed(|| {