diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-12 15:36:01 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 15:36:01 +0100 |
commit | 147547e7b85e80e2e30aa1a5ba4d9d0969908398 (patch) | |
tree | c39749d1b71b73b4017c2d0d848ebdc85e570c39 /crates/ra_ide/src/diagnostics.rs | |
parent | 6be5ab02008b442c85c201968b97f24f13c4692e (diff) | |
parent | 208b7bd7ba687fb570feb1b89219f14c63712ce8 (diff) |
Merge #5724
5724: Rename ra_prof -> profile
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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(); |