aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/name_ref_kind.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-06-01 18:48:06 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-06-01 18:48:06 +0100
commitccec71165bf1f8f79bd2d2a5c05bed55ff3a07a2 (patch)
tree695718725ac4c9fb60a6c5c29a4f83aa489cc6c2 /crates/ra_ide_api/src/name_ref_kind.rs
parent1e6b45b05ae378b9e376fcf02ecef15aa7dd1b6b (diff)
parent371961be0e0b0741599ebf3d9435c03fd45cf777 (diff)
Merge #1360
1360: Improve goto definition for MBE r=matklad a=edwin0cheng This PR improve the macro resolution for goto definition and expression macro invocation by using proper path resolution for external macros. Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/name_ref_kind.rs')
-rw-r--r--crates/ra_ide_api/src/name_ref_kind.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/name_ref_kind.rs b/crates/ra_ide_api/src/name_ref_kind.rs
index b498fe495..90972bc58 100644
--- a/crates/ra_ide_api/src/name_ref_kind.rs
+++ b/crates/ra_ide_api/src/name_ref_kind.rs
@@ -39,7 +39,7 @@ pub(crate) fn classify_name_ref(
39 .and_then(ast::MacroCall::cast) 39 .and_then(ast::MacroCall::cast)
40 { 40 {
41 tested_by!(goto_definition_works_for_macros); 41 tested_by!(goto_definition_works_for_macros);
42 if let Some(mac) = analyzer.resolve_macro_call(macro_call) { 42 if let Some(mac) = analyzer.resolve_macro_call(db, macro_call) {
43 return Some(Macro(mac)); 43 return Some(Macro(mac));
44 } 44 }
45 } 45 }