diff options
Diffstat (limited to 'crates/ra_analysis/src/db/mod.rs')
-rw-r--r-- | crates/ra_analysis/src/db/mod.rs | 14 |
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 | ||
30 | pub(crate) fn check_canceled(db: &impl salsa::Database) -> Cancelable<()> { | 30 | pub(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 | ||
38 | impl salsa::ParallelDatabase for RootDatabase { | 40 | impl salsa::ParallelDatabase for RootDatabase { |