Rust: reword macro expansion error

This commit is contained in:
Paolo Tranquilli
2025-08-26 13:58:47 +02:00
parent 999920c968
commit 42a40c14ac
5 changed files with 5 additions and 5 deletions

View File

@@ -514,7 +514,7 @@ impl<'a> Translator<'a> {
mcall,
&SyntaxError::new(
format!(
"macro expansion failed: could not resolve macro '{}'",
"macro expansion failed for '{}'",
mcall.path().map(|p| p.to_string()).unwrap_or_default()
),
range.unwrap_or_else(|| TextRange::empty(TextSize::from(0))),