aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r--crates/ra_hir_def/src/nameres/collector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs
index 08693cb13..6a01e3ab7 100644
--- a/crates/ra_hir_def/src/nameres/collector.rs
+++ b/crates/ra_hir_def/src/nameres/collector.rs
@@ -7,7 +7,7 @@ use hir_expand::{
7 builtin_derive::find_builtin_derive, 7 builtin_derive::find_builtin_derive,
8 builtin_macro::find_builtin_macro, 8 builtin_macro::find_builtin_macro,
9 name::{self, AsName, Name}, 9 name::{self, AsName, Name},
10 HirFileId, MacroCallId, MacroCallKind, MacroDefId, MacroDefKind, MacroFileKind, 10 HirFileId, MacroCallId, MacroCallKind, MacroDefId, MacroDefKind,
11}; 11};
12use ra_cfg::CfgOptions; 12use ra_cfg::CfgOptions;
13use ra_db::{CrateId, FileId}; 13use ra_db::{CrateId, FileId};
@@ -545,7 +545,7 @@ where
545 self.macro_stack_monitor.increase(macro_def_id); 545 self.macro_stack_monitor.increase(macro_def_id);
546 546
547 if !self.macro_stack_monitor.is_poison(macro_def_id) { 547 if !self.macro_stack_monitor.is_poison(macro_def_id) {
548 let file_id: HirFileId = macro_call_id.as_file(MacroFileKind::Items); 548 let file_id: HirFileId = macro_call_id.as_file();
549 let raw_items = self.db.raw_items(file_id); 549 let raw_items = self.db.raw_items(file_id);
550 let mod_dir = self.mod_dirs[&module_id].clone(); 550 let mod_dir = self.mod_dirs[&module_id].clone();
551 ModCollector { 551 ModCollector {