aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/source_binder.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-23 16:49:11 +0000
committerAleksey Kladov <[email protected]>2019-01-23 16:49:11 +0000
commit59f830d3e8999691f5e3140cf45494fe7cc46ac4 (patch)
tree393cb0a63eba938a3f3bb1ffa7150697b7e071ba /crates/ra_hir/src/source_binder.rs
parent118e11e50b5f39aca88e2ed342e5d355d4f32c00 (diff)
assign DefIds when lowering
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r--crates/ra_hir/src/source_binder.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs
index 2fe354b04..bde0be37b 100644
--- a/crates/ra_hir/src/source_binder.rs
+++ b/crates/ra_hir/src/source_binder.rs
@@ -146,9 +146,10 @@ pub fn macro_symbols(db: &impl HirDatabase, file_id: FileId) -> Vec<(SmolStr, Te
146 let mut res = Vec::new(); 146 let mut res = Vec::new();
147 147
148 for macro_call_id in items 148 for macro_call_id in items
149 .items 149 .declarations
150 .iter() 150 .iter()
151 .filter_map(|it| it.id.file_id.as_macro_call_id()) 151 .filter_map(|(_, it)| it.take_types())
152 .filter_map(|it| it.loc(db).source_item_id.file_id.as_macro_call_id())
152 { 153 {
153 if let Some(exp) = db.expand_macro_invocation(macro_call_id) { 154 if let Some(exp) = db.expand_macro_invocation(macro_call_id) {
154 let loc = macro_call_id.loc(db); 155 let loc = macro_call_id.loc(db);