inline format!() args from rustc_codegen_llvm to the end (4)
r? @WaffleLapkin
This commit is contained in:
parent
8327047b23
commit
c64ef5e070
94 changed files with 385 additions and 498 deletions
|
@ -157,10 +157,8 @@ impl<'tcx> CheckConstVisitor<'tcx> {
|
|||
// is a pretty narrow case, however.
|
||||
if tcx.sess.is_nightly_build() {
|
||||
for gate in missing_secondary {
|
||||
let note = format!(
|
||||
"add `#![feature({})]` to the crate attributes to enable",
|
||||
gate,
|
||||
);
|
||||
let note =
|
||||
format!("add `#![feature({gate})]` to the crate attributes to enable",);
|
||||
err.help(note);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,9 +89,8 @@ impl<'a, 'hir> HirIdValidator<'a, 'hir> {
|
|||
|
||||
self.error(|| {
|
||||
format!(
|
||||
"ItemLocalIds not assigned densely in {}. \
|
||||
Max ItemLocalId = {}, missing IDs = {:#?}; seen IDs = {:#?}",
|
||||
pretty_owner, max, missing_items, seen_items
|
||||
"ItemLocalIds not assigned densely in {pretty_owner}. \
|
||||
Max ItemLocalId = {max}, missing IDs = {missing_items:#?}; seen IDs = {seen_items:#?}"
|
||||
)
|
||||
});
|
||||
}
|
||||
|
|
|
@ -126,12 +126,12 @@ impl<'k> StatCollector<'k> {
|
|||
|
||||
let total_size = nodes.iter().map(|(_, node)| node.stats.count * node.stats.size).sum();
|
||||
|
||||
eprintln!("{} {}", prefix, title);
|
||||
eprintln!("{prefix} {title}");
|
||||
eprintln!(
|
||||
"{} {:<18}{:>18}{:>14}{:>14}",
|
||||
prefix, "Name", "Accumulated Size", "Count", "Item Size"
|
||||
);
|
||||
eprintln!("{} ----------------------------------------------------------------", prefix);
|
||||
eprintln!("{prefix} ----------------------------------------------------------------");
|
||||
|
||||
let percent = |m, n| (m * 100) as f64 / n as f64;
|
||||
|
||||
|
@ -163,9 +163,9 @@ impl<'k> StatCollector<'k> {
|
|||
}
|
||||
}
|
||||
}
|
||||
eprintln!("{} ----------------------------------------------------------------", prefix);
|
||||
eprintln!("{prefix} ----------------------------------------------------------------");
|
||||
eprintln!("{} {:<18}{:>10}", prefix, "Total", to_readable_str(total_size));
|
||||
eprintln!("{}", prefix);
|
||||
eprintln!("{prefix}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -605,7 +605,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
|
|||
for var_idx in 0..self.ir.var_kinds.len() {
|
||||
let var = Variable::from(var_idx);
|
||||
if test(var) {
|
||||
write!(wr, " {:?}", var)?;
|
||||
write!(wr, " {var:?}")?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue