diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-26 06:22:20 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-28 06:10:36 +0500 |
| commit | b8eb046e6ee3294969bf8faf31da226b0ea29d18 (patch) | |
| tree | c86381dc96242b7de6bff882a53df40a8eb86b55 /compiler/rustc_monomorphize | |
| parent | bae38bad7803be7fdf1878188da9650f82548016 (diff) | |
| download | rust-b8eb046e6ee3294969bf8faf31da226b0ea29d18.tar.gz rust-b8eb046e6ee3294969bf8faf31da226b0ea29d18.zip | |
use let chains in mir, resolve, target
Diffstat (limited to 'compiler/rustc_monomorphize')
| -rw-r--r-- | compiler/rustc_monomorphize/src/partitioning.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs index ca8228de57e..f3e7d582781 100644 --- a/compiler/rustc_monomorphize/src/partitioning.rs +++ b/compiler/rustc_monomorphize/src/partitioning.rs @@ -1178,12 +1178,11 @@ fn collect_and_partition_mono_items(tcx: TyCtxt<'_>, (): ()) -> MonoItemPartitio let autodiff_items = tcx.arena.alloc_from_iter(autodiff_items); // Output monomorphization stats per def_id - if let SwitchWithOptPath::Enabled(ref path) = tcx.sess.opts.unstable_opts.dump_mono_stats { - if let Err(err) = + if let SwitchWithOptPath::Enabled(ref path) = tcx.sess.opts.unstable_opts.dump_mono_stats + && let Err(err) = dump_mono_items_stats(tcx, codegen_units, path, tcx.crate_name(LOCAL_CRATE)) - { - tcx.dcx().emit_fatal(CouldntDumpMonoStats { error: err.to_string() }); - } + { + tcx.dcx().emit_fatal(CouldntDumpMonoStats { error: err.to_string() }); } if tcx.sess.opts.unstable_opts.print_mono_items { |
