diff options
Diffstat (limited to 'crates/ra_ide/src/diagnostics.rs')
-rw-r--r-- | crates/ra_ide/src/diagnostics.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs index 1046d7ab3..07bf133bd 100644 --- a/crates/ra_ide/src/diagnostics.rs +++ b/crates/ra_ide/src/diagnostics.rs | |||
@@ -10,7 +10,6 @@ use hir::{diagnostics::DiagnosticSinkBuilder, Semantics}; | |||
10 | use itertools::Itertools; | 10 | use itertools::Itertools; |
11 | use ra_db::SourceDatabase; | 11 | use ra_db::SourceDatabase; |
12 | use ra_ide_db::RootDatabase; | 12 | use ra_ide_db::RootDatabase; |
13 | use ra_prof::profile; | ||
14 | use ra_syntax::{ | 13 | use ra_syntax::{ |
15 | ast::{self, AstNode}, | 14 | ast::{self, AstNode}, |
16 | SyntaxNode, TextRange, T, | 15 | SyntaxNode, TextRange, T, |
@@ -33,7 +32,7 @@ pub(crate) fn diagnostics( | |||
33 | file_id: FileId, | 32 | file_id: FileId, |
34 | enable_experimental: bool, | 33 | enable_experimental: bool, |
35 | ) -> Vec<Diagnostic> { | 34 | ) -> Vec<Diagnostic> { |
36 | let _p = profile("diagnostics"); | 35 | let _p = profile::span("diagnostics"); |
37 | let sema = Semantics::new(db); | 36 | let sema = Semantics::new(db); |
38 | let parse = db.parse(file_id); | 37 | let parse = db.parse(file_id); |
39 | let mut res = Vec::new(); | 38 | let mut res = Vec::new(); |