diff options
Diffstat (limited to 'crates/hir_def/src/nameres/collector.rs')
-rw-r--r-- | crates/hir_def/src/nameres/collector.rs | 2 |
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 | } |