diff options
author | Aleksey Kladov <[email protected]> | 2020-06-11 11:08:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-11 11:13:14 +0100 |
commit | fac7b0e252ab305f5c8d69b04c46c587ee021aa9 (patch) | |
tree | c8a90f4da1a3ab9f949466dd651d1983231674e8 /crates/ra_hir_def/src/body.rs | |
parent | d8a5d39c2d05fb59b6c243935111714e18334599 (diff) |
Don't guess macro expansion crate
Diffstat (limited to 'crates/ra_hir_def/src/body.rs')
-rw-r--r-- | crates/ra_hir_def/src/body.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs index 273036cee..4f2350915 100644 --- a/crates/ra_hir_def/src/body.rs +++ b/crates/ra_hir_def/src/body.rs | |||
@@ -97,7 +97,7 @@ impl Expander { | |||
97 | 97 | ||
98 | let macro_call = InFile::new(self.current_file_id, ¯o_call); | 98 | let macro_call = InFile::new(self.current_file_id, ¯o_call); |
99 | 99 | ||
100 | if let Some(call_id) = macro_call.as_call_id(db, |path| { | 100 | if let Some(call_id) = macro_call.as_call_id(db, self.crate_def_map.krate, |path| { |
101 | if let Some(local_scope) = local_scope { | 101 | if let Some(local_scope) = local_scope { |
102 | if let Some(def) = path.as_ident().and_then(|n| local_scope.get_legacy_macro(n)) { | 102 | if let Some(def) = path.as_ident().and_then(|n| local_scope.get_legacy_macro(n)) { |
103 | return Some(def); | 103 | return Some(def); |