]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_monomorphize/src/partitioning/mod.rs
Move ty::print methods to Drop-based scope guards
[rust.git] / compiler / rustc_monomorphize / src / partitioning / mod.rs
index 67597a0d7b46b5dea8d40f9bce3480e6ebb68146..7c8dc1a0ecba81593559c9b1fbacd81267d4f7c8 100644 (file)
@@ -427,7 +427,7 @@ fn collect_and_partition_mono_items<'tcx>(
         let mut item_keys: Vec<_> = items
             .iter()
             .map(|i| {
-                let mut output = with_no_trimmed_paths(|| i.to_string());
+                let mut output = with_no_trimmed_paths!(i.to_string());
                 output.push_str(" @@");
                 let mut empty = Vec::new();
                 let cgus = item_to_cgus.get_mut(i).unwrap_or(&mut empty);