diff options
author | Aleksey Kladov <[email protected]> | 2019-12-17 14:38:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-17 14:38:28 +0000 |
commit | aca022f1d49a6d945f3ef4f8c781d7337120b68d (patch) | |
tree | 4cddf22d75fc1a9a3e8ff2863a1983348f193b26 /crates/ra_hir_def/src/nameres/collector.rs | |
parent | 4a58522119955f36d95212be902fe3ab79c5e922 (diff) |
Refactor PathKind
Diffstat (limited to 'crates/ra_hir_def/src/nameres/collector.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 912a073ea..8bbf7ffa2 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -890,7 +890,7 @@ where | |||
890 | // We rewrite simple path `macro_name` to `self::macro_name` to force resolve in module scope only. | 890 | // We rewrite simple path `macro_name` to `self::macro_name` to force resolve in module scope only. |
891 | let mut path = mac.path.clone(); | 891 | let mut path = mac.path.clone(); |
892 | if path.is_ident() { | 892 | if path.is_ident() { |
893 | path.kind = PathKind::Self_; | 893 | path.kind = PathKind::Super(0); |
894 | } | 894 | } |
895 | 895 | ||
896 | self.def_collector.unexpanded_macros.push(MacroDirective { | 896 | self.def_collector.unexpanded_macros.push(MacroDirective { |