We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Zprint-mono-items
1 parent 07b7dc9 commit 25d8e13Copy full SHA for 25d8e13
compiler/rustc_codegen_ssa/src/base.rs
@@ -735,6 +735,11 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
735
crate::assert_module_sources::assert_module_sources(tcx, &|cgu_reuse_tracker| {
736
for (i, cgu) in codegen_units.iter().enumerate() {
737
let cgu_reuse = cgu_reuse[i];
738
+
739
+ if tcx.sess.opts.unstable_opts.print_mono_items {
740
+ println!("CGU_REUSE {} {cgu_reuse}", cgu.name());
741
+ }
742
743
cgu_reuse_tracker.set_actual_reuse(cgu.name().as_str(), cgu_reuse);
744
}
745
});
0 commit comments