diff options
Diffstat (limited to 'crates/ra_hir_def/src/generics.rs')
-rw-r--r-- | crates/ra_hir_def/src/generics.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/generics.rs b/crates/ra_hir_def/src/generics.rs index 699ba9c92..0e06a0b12 100644 --- a/crates/ra_hir_def/src/generics.rs +++ b/crates/ra_hir_def/src/generics.rs | |||
@@ -4,14 +4,13 @@ | |||
4 | //! in rustc. | 4 | //! in rustc. |
5 | use std::sync::Arc; | 5 | use std::sync::Arc; |
6 | 6 | ||
7 | use arena::{map::ArenaMap, Arena}; | ||
7 | use either::Either; | 8 | use either::Either; |
8 | use hir_expand::{ | 9 | use hir_expand::{ |
9 | name::{name, AsName, Name}, | 10 | name::{name, AsName, Name}, |
10 | InFile, | 11 | InFile, |
11 | }; | 12 | }; |
12 | use ra_arena::{map::ArenaMap, Arena}; | ||
13 | use ra_db::FileId; | 13 | use ra_db::FileId; |
14 | use ra_prof::profile; | ||
15 | use ra_syntax::ast::{self, GenericParamsOwner, NameOwner, TypeBoundsOwner}; | 14 | use ra_syntax::ast::{self, GenericParamsOwner, NameOwner, TypeBoundsOwner}; |
16 | 15 | ||
17 | use crate::{ | 16 | use crate::{ |
@@ -73,7 +72,7 @@ impl GenericParams { | |||
73 | db: &dyn DefDatabase, | 72 | db: &dyn DefDatabase, |
74 | def: GenericDefId, | 73 | def: GenericDefId, |
75 | ) -> Arc<GenericParams> { | 74 | ) -> Arc<GenericParams> { |
76 | let _p = profile("generic_params_query"); | 75 | let _p = profile::span("generic_params_query"); |
77 | 76 | ||
78 | let generics = match def { | 77 | let generics = match def { |
79 | GenericDefId::FunctionId(id) => { | 78 | GenericDefId::FunctionId(id) => { |