Improve proc-macro panic message and workspace loading failure diagnostic

This commit is contained in:
Lukas Wirth 2024-08-22 18:46:23 +02:00
parent f854e19ef0
commit ada65feaa1
3 changed files with 4 additions and 3 deletions

View file

@ -192,7 +192,7 @@ impl ExpandErrorKind {
("overflow expanding the original macro".to_owned(), true)
}
ExpandErrorKind::Other(e) => ((**e).to_owned(), true),
ExpandErrorKind::ProcMacroPanic(e) => ((**e).to_owned(), true),
ExpandErrorKind::ProcMacroPanic(e) => (format!("proc-macro panicked: {e}"), true),
}
}
}