diff options
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 0007d7fa8..5c0c6184a 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -31,7 +31,6 @@ use hir_ty::{ | |||
31 | InEnvironment, Substs, TraitEnvironment, Ty, TyDefId, TypeCtor, | 31 | InEnvironment, Substs, TraitEnvironment, Ty, TyDefId, TypeCtor, |
32 | }; | 32 | }; |
33 | use ra_db::{CrateId, Edition, FileId}; | 33 | use ra_db::{CrateId, Edition, FileId}; |
34 | use ra_prof::profile; | ||
35 | use ra_syntax::{ | 34 | use ra_syntax::{ |
36 | ast::{self, AttrsOwner, NameOwner}, | 35 | ast::{self, AttrsOwner, NameOwner}, |
37 | AstNode, | 36 | AstNode, |
@@ -304,7 +303,7 @@ impl Module { | |||
304 | } | 303 | } |
305 | 304 | ||
306 | pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) { | 305 | pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) { |
307 | let _p = profile("Module::diagnostics"); | 306 | let _p = profile::span("Module::diagnostics"); |
308 | let crate_def_map = db.crate_def_map(self.id.krate); | 307 | let crate_def_map = db.crate_def_map(self.id.krate); |
309 | crate_def_map.add_diagnostics(db.upcast(), self.id.local_id, sink); | 308 | crate_def_map.add_diagnostics(db.upcast(), self.id.local_id, sink); |
310 | for decl in self.declarations(db) { | 309 | for decl in self.declarations(db) { |