diff options
Diffstat (limited to 'crates/ra_hir_def/src/body.rs')
-rw-r--r-- | crates/ra_hir_def/src/body.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs index d5f18b920..1deb1a837 100644 --- a/crates/ra_hir_def/src/body.rs +++ b/crates/ra_hir_def/src/body.rs | |||
@@ -5,13 +5,12 @@ pub mod scope; | |||
5 | 5 | ||
6 | use std::{mem, ops::Index, sync::Arc}; | 6 | use std::{mem, ops::Index, sync::Arc}; |
7 | 7 | ||
8 | use arena::{map::ArenaMap, Arena}; | ||
8 | use drop_bomb::DropBomb; | 9 | use drop_bomb::DropBomb; |
9 | use either::Either; | 10 | use either::Either; |
10 | use hir_expand::{ast_id_map::AstIdMap, hygiene::Hygiene, AstId, HirFileId, InFile, MacroDefId}; | 11 | use hir_expand::{ast_id_map::AstIdMap, hygiene::Hygiene, AstId, HirFileId, InFile, MacroDefId}; |
11 | use ra_arena::{map::ArenaMap, Arena}; | ||
12 | use ra_cfg::CfgOptions; | 12 | use ra_cfg::CfgOptions; |
13 | use ra_db::CrateId; | 13 | use ra_db::CrateId; |
14 | use ra_prof::profile; | ||
15 | use ra_syntax::{ast, AstNode, AstPtr}; | 14 | use ra_syntax::{ast, AstNode, AstPtr}; |
16 | use rustc_hash::FxHashMap; | 15 | use rustc_hash::FxHashMap; |
17 | use test_utils::mark; | 16 | use test_utils::mark; |
@@ -228,7 +227,7 @@ impl Body { | |||
228 | db: &dyn DefDatabase, | 227 | db: &dyn DefDatabase, |
229 | def: DefWithBodyId, | 228 | def: DefWithBodyId, |
230 | ) -> (Arc<Body>, Arc<BodySourceMap>) { | 229 | ) -> (Arc<Body>, Arc<BodySourceMap>) { |
231 | let _p = profile("body_with_source_map_query"); | 230 | let _p = profile::span("body_with_source_map_query"); |
232 | let mut params = None; | 231 | let mut params = None; |
233 | 232 | ||
234 | let (file_id, module, body) = match def { | 233 | let (file_id, module, body) = match def { |