Fix uninlined_format_args
for some compiler crates
Convert all the crates that have had their diagnostic migration completed (except save_analysis because that will be deleted soon and apfloat because of the licensing problem).
This commit is contained in:
parent
1d284af117
commit
fd7a159710
91 changed files with 287 additions and 329 deletions
|
@ -2170,10 +2170,10 @@ impl fmt::Display for InlineAsmTemplatePiece {
|
|||
Ok(())
|
||||
}
|
||||
Self::Placeholder { operand_idx, modifier: Some(modifier), .. } => {
|
||||
write!(f, "{{{}:{}}}", operand_idx, modifier)
|
||||
write!(f, "{{{operand_idx}:{modifier}}}")
|
||||
}
|
||||
Self::Placeholder { operand_idx, modifier: None, .. } => {
|
||||
write!(f, "{{{}}}", operand_idx)
|
||||
write!(f, "{{{operand_idx}}}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2185,7 +2185,7 @@ impl InlineAsmTemplatePiece {
|
|||
use fmt::Write;
|
||||
let mut out = String::new();
|
||||
for p in s.iter() {
|
||||
let _ = write!(out, "{}", p);
|
||||
let _ = write!(out, "{p}");
|
||||
}
|
||||
out
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue