aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/db')
-rw-r--r--crates/ra_analysis/src/db/mod.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ra_analysis/src/db/mod.rs b/crates/ra_analysis/src/db/mod.rs
index 1a9023697..a922995de 100644
--- a/crates/ra_analysis/src/db/mod.rs
+++ b/crates/ra_analysis/src/db/mod.rs
@@ -27,12 +27,14 @@ impl salsa::Database for RootDatabase {
27 } 27 }
28} 28}
29 29
30pub(crate) fn check_canceled(db: &impl salsa::Database) -> Cancelable<()> { 30pub(crate) fn check_canceled(_db: &impl salsa::Database) -> Cancelable<()> {
31 if db.salsa_runtime().is_current_revision_canceled() { 31 // Disabled due to https://github.com/salsa-rs/salsa/issues/66
32 Err(Canceled) 32 Ok(())
33 } else { 33 // if db.salsa_runtime().is_current_revision_canceled() {
34 Ok(()) 34 // Err(Canceled)
35 } 35 // } else {
36 // Ok(())
37 // }
36} 38}
37 39
38impl salsa::ParallelDatabase for RootDatabase { 40impl salsa::ParallelDatabase for RootDatabase {