aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-04-01 19:35:21 +0100
committerJonas Schievink <[email protected]>2021-04-01 19:35:21 +0100
commit39d992ef559c9cd67551819a9d63ef52ef7b725f (patch)
tree49e1e59d00e46a8bb110d2b28d911c07d4a058f9 /crates/hir_def/src/nameres
parentb00266b79f0e2c2a5e332b30f7e6aba83b5e6e5a (diff)
Intern Attr, MacroCall and Path components
Diffstat (limited to 'crates/hir_def/src/nameres')
-rw-r--r--crates/hir_def/src/nameres/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs
index d58135ec9..5badefabf 100644
--- a/crates/hir_def/src/nameres/collector.rs
+++ b/crates/hir_def/src/nameres/collector.rs
@@ -1464,7 +1464,7 @@ impl ModCollector<'_, '_> {
1464 } 1464 }
1465 1465
1466 fn collect_macro_call(&mut self, mac: &MacroCall) { 1466 fn collect_macro_call(&mut self, mac: &MacroCall) {
1467 let mut ast_id = AstIdWithPath::new(self.file_id, mac.ast_id, mac.path.clone()); 1467 let mut ast_id = AstIdWithPath::new(self.file_id, mac.ast_id, (*mac.path).clone());
1468 1468
1469 // Case 1: try to resolve in legacy scope and expand macro_rules 1469 // Case 1: try to resolve in legacy scope and expand macro_rules
1470 let mut error = None; 1470 let mut error = None;