]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_query_impl/src/profiling_support.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / compiler / rustc_query_impl / src / profiling_support.rs
index 81114f2cd82c326dbe9a98aefb7b402b986ded0f..4743170e9bfd8a450f2049e45699e1e4ff44baae 100644 (file)
@@ -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[..])
     }
 }
@@ -278,7 +278,7 @@ pub(crate) fn alloc_self_profile_query_strings_for_query_cache<'tcx, C>(
 /// If we are recording only summary data, the ids will point to
 /// just the query names. If we are recording query keys too, we
 /// allocate the corresponding strings here.
-pub fn alloc_self_profile_query_strings<'tcx>(tcx: TyCtxt<'tcx>) {
+pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
     if !tcx.prof.enabled() {
         return;
     }