diff options
author | Edwin Cheng <[email protected]> | 2021-01-04 02:53:31 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2021-01-07 05:08:32 +0000 |
commit | 76f2b9d2ef797fb995f1bd2706a7e609d014a67a (patch) | |
tree | f8f81c7afd64167746a40a576e63fcd234c14b5b /crates/hir_def/src | |
parent | b47c63a4bcefe93be3e5fe97b2a57489f13da493 (diff) |
Proper handling $crate Take 2
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/path/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/path/lower.rs b/crates/hir_def/src/path/lower.rs index 8a01e6eea..9518ac109 100644 --- a/crates/hir_def/src/path/lower.rs +++ b/crates/hir_def/src/path/lower.rs | |||
@@ -123,7 +123,7 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option<Path> | |||
123 | // We follow what it did anyway :) | 123 | // We follow what it did anyway :) |
124 | if segments.len() == 1 && kind == PathKind::Plain { | 124 | if segments.len() == 1 && kind == PathKind::Plain { |
125 | if let Some(_macro_call) = path.syntax().parent().and_then(ast::MacroCall::cast) { | 125 | if let Some(_macro_call) = path.syntax().parent().and_then(ast::MacroCall::cast) { |
126 | if let Some(crate_id) = hygiene.local_inner_macros() { | 126 | if let Some(crate_id) = hygiene.local_inner_macros(path) { |
127 | kind = PathKind::DollarCrate(crate_id); | 127 | kind = PathKind::DollarCrate(crate_id); |
128 | } | 128 | } |
129 | } | 129 | } |