diff options
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/db.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_expand/Cargo.toml b/crates/ra_hir_expand/Cargo.toml index 808c36fd8..711a93c56 100644 --- a/crates/ra_hir_expand/Cargo.toml +++ b/crates/ra_hir_expand/Cargo.toml | |||
@@ -17,7 +17,7 @@ arena = { path = "../arena" } | |||
17 | ra_db = { path = "../ra_db" } | 17 | ra_db = { path = "../ra_db" } |
18 | ra_syntax = { path = "../ra_syntax" } | 18 | ra_syntax = { path = "../ra_syntax" } |
19 | ra_parser = { path = "../ra_parser" } | 19 | ra_parser = { path = "../ra_parser" } |
20 | ra_prof = { path = "../ra_prof" } | 20 | profile = { path = "../profile" } |
21 | tt = { path = "../ra_tt", package = "ra_tt" } | 21 | tt = { path = "../ra_tt", package = "ra_tt" } |
22 | mbe = { path = "../ra_mbe", package = "ra_mbe" } | 22 | mbe = { path = "../ra_mbe", package = "ra_mbe" } |
23 | test_utils = { path = "../test_utils"} | 23 | test_utils = { path = "../test_utils"} |
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs index f3b7cd492..f30528b3e 100644 --- a/crates/ra_hir_expand/src/db.rs +++ b/crates/ra_hir_expand/src/db.rs | |||
@@ -5,7 +5,6 @@ use std::sync::Arc; | |||
5 | use mbe::{ExpandResult, MacroRules}; | 5 | use mbe::{ExpandResult, MacroRules}; |
6 | use ra_db::{salsa, SourceDatabase}; | 6 | use ra_db::{salsa, SourceDatabase}; |
7 | use ra_parser::FragmentKind; | 7 | use ra_parser::FragmentKind; |
8 | use ra_prof::profile; | ||
9 | use ra_syntax::{algo::diff, AstNode, GreenNode, Parse, SyntaxKind::*, SyntaxNode}; | 8 | use ra_syntax::{algo::diff, AstNode, GreenNode, Parse, SyntaxKind::*, SyntaxNode}; |
10 | 9 | ||
11 | use crate::{ | 10 | use crate::{ |
@@ -278,7 +277,7 @@ pub fn parse_macro_with_arg( | |||
278 | macro_file: MacroFile, | 277 | macro_file: MacroFile, |
279 | arg: Option<Arc<(tt::Subtree, mbe::TokenMap)>>, | 278 | arg: Option<Arc<(tt::Subtree, mbe::TokenMap)>>, |
280 | ) -> Option<(Parse<SyntaxNode>, Arc<mbe::TokenMap>)> { | 279 | ) -> Option<(Parse<SyntaxNode>, Arc<mbe::TokenMap>)> { |
281 | let _p = profile("parse_macro_query"); | 280 | let _p = profile::span("parse_macro_query"); |
282 | 281 | ||
283 | let macro_call_id = macro_file.macro_call_id; | 282 | let macro_call_id = macro_file.macro_call_id; |
284 | let (tt, err) = if let Some(arg) = arg { | 283 | let (tt, err) = if let Some(arg) = arg { |