mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
kill last cancelables
This commit is contained in:
parent
0bb170a277
commit
8338acfd3a
3 changed files with 7 additions and 8 deletions
|
@ -15,7 +15,6 @@ use ra_syntax::{
|
|||
|
||||
use crate::{
|
||||
AnalysisChange,
|
||||
Cancelable,
|
||||
CrateId, db, Diagnostic, FileId, FilePosition, FileRange, FileSystemEdit,
|
||||
Query, RootChange, SourceChange, SourceFileEdit,
|
||||
symbol_index::{LibrarySymbolsQuery, FileSymbol},
|
||||
|
@ -158,7 +157,7 @@ impl db::RootDatabase {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn diagnostics(&self, file_id: FileId) -> Cancelable<Vec<Diagnostic>> {
|
||||
pub(crate) fn diagnostics(&self, file_id: FileId) -> Vec<Diagnostic> {
|
||||
let syntax = self.source_file(file_id);
|
||||
|
||||
let mut res = ra_ide_api_light::diagnostics(&syntax)
|
||||
|
@ -219,7 +218,7 @@ impl db::RootDatabase {
|
|||
res.push(diag)
|
||||
}
|
||||
};
|
||||
Ok(res)
|
||||
res
|
||||
}
|
||||
|
||||
pub(crate) fn assists(&self, frange: FileRange) -> Vec<SourceChange> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue