re-enable cancelation
This commit is contained in:
parent
772acb53f2
commit
75d9cbd7c2
@ -11,7 +11,7 @@ rayon = "1.0.2"
|
||||
fst = "0.3.1"
|
||||
ra_syntax = { path = "../ra_syntax" }
|
||||
ra_editor = { path = "../ra_editor" }
|
||||
salsa = "0.6.0"
|
||||
salsa = "0.6.2"
|
||||
rustc-hash = "1.0"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -27,14 +27,12 @@ fn salsa_runtime(&self) -> &salsa::Runtime<RootDatabase> {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn check_canceled(_db: &impl salsa::Database) -> Cancelable<()> {
|
||||
// Disabled due to https://github.com/salsa-rs/salsa/issues/66
|
||||
Ok(())
|
||||
// if db.salsa_runtime().is_current_revision_canceled() {
|
||||
// Err(Canceled)
|
||||
// } else {
|
||||
// Ok(())
|
||||
// }
|
||||
pub(crate) fn check_canceled(db: &impl salsa::Database) -> Cancelable<()> {
|
||||
if db.salsa_runtime().is_current_revision_canceled() {
|
||||
Err(Canceled)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl salsa::ParallelDatabase for RootDatabase {
|
||||
|
Loading…
Reference in New Issue
Block a user