aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/source_binder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r--crates/ra_hir/src/source_binder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs
index ea8185853..dbe040805 100644
--- a/crates/ra_hir/src/source_binder.rs
+++ b/crates/ra_hir/src/source_binder.rs
@@ -145,10 +145,10 @@ pub fn macro_symbols(db: &impl HirDatabase, file_id: FileId) -> Vec<(SmolStr, Te
145 .iter() 145 .iter()
146 .filter_map(|(_, it)| it.clone().take_types()) 146 .filter_map(|(_, it)| it.clone().take_types())
147 .filter_map(|it| match it { 147 .filter_map(|it| match it {
148 ModuleDef::Def(it) => Some(it), 148 ModuleDef::Trait(it) => Some(it),
149 _ => None, 149 _ => None,
150 }) 150 })
151 .filter_map(|it| it.loc(db).source_item_id.file_id.as_macro_call_id()) 151 .filter_map(|it| it.source(db).0.as_macro_call_id())
152 { 152 {
153 if let Some(exp) = db.expand_macro_invocation(macro_call_id) { 153 if let Some(exp) = db.expand_macro_invocation(macro_call_id) {
154 let loc = macro_call_id.loc(db); 154 let loc = macro_call_id.loc(db);