aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorbrandondong <[email protected]>2021-03-15 18:16:58 +0000
committerGitHub <[email protected]>2021-03-15 18:16:58 +0000
commitebb10da563f1c3a0ebf48c1022bceb9641b6e964 (patch)
tree857a2e74852c6aeb05d5b01168e8594cb6a0fcd7 /crates/hir_def
parent2df637f41900e50bbe47d2628554f7ffd167749a (diff)
Update crates/hir_def/src/nameres/collector.rs
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def')
-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 9590b8ce3..81cf652b0 100644
--- a/crates/hir_def/src/nameres/collector.rs
+++ b/crates/hir_def/src/nameres/collector.rs
@@ -1486,7 +1486,7 @@ impl ModCollector<'_, '_> {
1486 self.def_collector.def_map.diagnostics.push(DefDiagnostic::macro_error( 1486 self.def_collector.def_map.diagnostics.push(DefDiagnostic::macro_error(
1487 self.module_id, 1487 self.module_id,
1488 MacroCallKind::FnLike(ast_id.ast_id), 1488 MacroCallKind::FnLike(ast_id.ast_id),
1489 error.map(|e| e.to_string()).unwrap_or_else(|| String::from("macro error")), 1489 error.unwrap().to_string(),
1490 )); 1490 ));
1491 return; 1491 return;
1492 } 1492 }