Update crates/hir_def/src/nameres/collector.rs
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
parent
2df637f419
commit
ebb10da563
@ -1486,7 +1486,7 @@ impl ModCollector<'_, '_> {
|
||||
self.def_collector.def_map.diagnostics.push(DefDiagnostic::macro_error(
|
||||
self.module_id,
|
||||
MacroCallKind::FnLike(ast_id.ast_id),
|
||||
error.map(|e| e.to_string()).unwrap_or_else(|| String::from("macro error")),
|
||||
error.unwrap().to_string(),
|
||||
));
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user