Fix proc-macro-test-impl building without any proc-macros

This commit is contained in:
Lukas Wirth 2023-12-15 17:47:47 +01:00
parent 9197b541c2
commit ca957f4f82
4 changed files with 6 additions and 10 deletions

View file

@ -97,7 +97,7 @@ impl ProcMacros {
}
}
Err(bridge::PanicMessage::String("Nothing to expand".to_string()).into())
Err(bridge::PanicMessage::String(format!("proc-macro `{macro_name}` is missing")).into())
}
pub(crate) fn list_macros(&self) -> Vec<(String, ProcMacroKind)> {