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
|
@ -787,7 +787,7 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for DefId {
|
|||
// which means that the definition with this hash is guaranteed to
|
||||
// still exist in the current compilation session.
|
||||
d.tcx.def_path_hash_to_def_id(def_path_hash, &mut || {
|
||||
panic!("Failed to convert DefPathHash {:?}", def_path_hash)
|
||||
panic!("Failed to convert DefPathHash {def_path_hash:?}")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -321,7 +321,7 @@ pub(crate) fn create_query_frame<
|
|||
ty::print::with_forced_impl_filename_line!(do_describe(tcx.tcx, key))
|
||||
);
|
||||
let description =
|
||||
if tcx.sess.verbose() { format!("{} [{:?}]", description, name) } else { description };
|
||||
if tcx.sess.verbose() { format!("{description} [{name:?}]") } else { description };
|
||||
let span = if kind == dep_graph::DepKind::def_span {
|
||||
// The `def_span` query is used to calculate `default_span`,
|
||||
// so exit to avoid infinite recursion.
|
||||
|
|
|
@ -111,7 +111,7 @@ impl<T: Debug> IntoSelfProfilingString for T {
|
|||
&self,
|
||||
builder: &mut QueryKeyStringBuilder<'_, '_>,
|
||||
) -> StringId {
|
||||
let s = format!("{:?}", self);
|
||||
let s = format!("{self:?}");
|
||||
builder.profiler.alloc_string(&s[..])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue