inline format!() args up to and including rustc_middle
This commit is contained in:
@@ -95,7 +95,7 @@ impl base::AttrProcMacro for AttrProcMacro {
|
||||
|e| {
|
||||
let mut err = ecx.struct_span_err(span, "custom attribute panicked");
|
||||
if let Some(s) = e.as_str() {
|
||||
err.help(format!("message: {}", s));
|
||||
err.help(format!("message: {s}"));
|
||||
}
|
||||
err.emit()
|
||||
},
|
||||
@@ -148,7 +148,7 @@ impl MultiItemModifier for DeriveProcMacro {
|
||||
Err(e) => {
|
||||
let mut err = ecx.struct_span_err(span, "proc-macro derive panicked");
|
||||
if let Some(s) = e.as_str() {
|
||||
err.help(format!("message: {}", s));
|
||||
err.help(format!("message: {s}"));
|
||||
}
|
||||
err.emit();
|
||||
return ExpandResult::Ready(vec![]);
|
||||
|
||||
Reference in New Issue
Block a user