aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres/collector.rs
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-26 16:41:44 +0000
committerEdwin Cheng <[email protected]>2020-03-26 16:46:40 +0000
commitdb162df264a222021dbc7f1f93af94029f3948d9 (patch)
tree86f91e30f85c2c4f5faa5054b84265ddb64636d5 /crates/ra_hir_def/src/nameres/collector.rs
parent72e68d0caf6e813a19a8d434fb650574b73dbc0a (diff)
Remove deps on tt_mbe
Diffstat (limited to 'crates/ra_hir_def/src/nameres/collector.rs')
-rw-r--r--crates/ra_hir_def/src/nameres/collector.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs
index 9b46431cb..8fe3f8617 100644
--- a/crates/ra_hir_def/src/nameres/collector.rs
+++ b/crates/ra_hir_def/src/nameres/collector.rs
@@ -12,7 +12,7 @@ use hir_expand::{
12}; 12};
13use ra_cfg::CfgOptions; 13use ra_cfg::CfgOptions;
14use ra_db::{CrateId, FileId, ProcMacroId}; 14use ra_db::{CrateId, FileId, ProcMacroId};
15use ra_syntax::{ast, SmolStr}; 15use ra_syntax::ast;
16use rustc_hash::FxHashMap; 16use rustc_hash::FxHashMap;
17use test_utils::tested_by; 17use test_utils::tested_by;
18 18
@@ -59,8 +59,8 @@ pub(super) fn collect_defs(db: &dyn DefDatabase, mut def_map: CrateDefMap) -> Cr
59 .enumerate() 59 .enumerate()
60 .map(|(idx, it)| { 60 .map(|(idx, it)| {
61 // FIXME: a hacky way to create a Name from string. 61 // FIXME: a hacky way to create a Name from string.
62 let name = tt::Ident { text: SmolStr::new(&it.name()), id: tt::TokenId::unspecified() }; 62 let name = tt::Ident { text: it.name.clone(), id: tt::TokenId::unspecified() };
63 (name.as_name(), ProcMacroExpander::new(def_map.krate, ProcMacroId(idx))) 63 (name.as_name(), ProcMacroExpander::new(def_map.krate, ProcMacroId(idx as u32)))
64 }) 64 })
65 .collect(); 65 .collect();
66 66