]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_data_structures/src/profiling.rs
create and use GlobalAlloc::address_space
[rust.git] / compiler / rustc_data_structures / src / profiling.rs
index 16296b2248975e6eb627a3d9ceb21ed967a6bb42..393f173908128457c7f70f01c8eddbbc8240c7cf 100644 (file)
@@ -545,7 +545,7 @@ pub fn new(
         // length can behave as a source of entropy for heap addresses, when
         // ASLR is disabled and the heap is otherwise determinic.
         let pid: u32 = process::id();
-        let filename = format!("{}-{:07}.rustc_profile", crate_name, pid);
+        let filename = format!("{crate_name}-{pid:07}.rustc_profile");
         let path = output_directory.join(&filename);
         let profiler =
             Profiler::with_counter(&path, measureme::counters::Counter::by_name(counter_name)?)?;