use let chains in mir, resolve, target
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user