inline format!() args up to and including rustc_middle
This commit is contained in:
@@ -1720,13 +1720,11 @@ impl HandlerInner {
|
||||
(count, delayed_count, as_bug) => {
|
||||
if delayed_count > 0 {
|
||||
panic!(
|
||||
"aborting after {} errors and {} delayed bugs due to `-Z treat-err-as-bug={}`",
|
||||
count, delayed_count, as_bug,
|
||||
"aborting after {count} errors and {delayed_count} delayed bugs due to `-Z treat-err-as-bug={as_bug}`",
|
||||
)
|
||||
} else {
|
||||
panic!(
|
||||
"aborting after {} errors due to `-Z treat-err-as-bug={}`",
|
||||
count, as_bug,
|
||||
"aborting after {count} errors due to `-Z treat-err-as-bug={as_bug}`",
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1862,7 +1860,7 @@ pub fn add_elided_lifetime_in_path_suggestion(
|
||||
}
|
||||
let anon_lts = vec!["'_"; n].join(", ");
|
||||
let suggestion =
|
||||
if incl_angl_brckt { format!("<{}>", anon_lts) } else { format!("{}, ", anon_lts) };
|
||||
if incl_angl_brckt { format!("<{anon_lts}>") } else { format!("{anon_lts}, ") };
|
||||
|
||||
diag.subdiagnostic(IndicateAnonymousLifetime {
|
||||
span: insertion_span.shrink_to_hi(),
|
||||
|
||||
Reference in New Issue
Block a user