inline format!() args up to and including rustc_middle
This commit is contained in:
parent
2e0136a131
commit
23815467a2
87 changed files with 378 additions and 437 deletions
|
@ -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![]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue