Don't run MIR optimization passes during cargo check
builds.
#48662
Labels
A-metadata
Area: Crate metadata
I-compiletime
Issue: Problems and improvements with respect to compile times.
WG-compiler-performance
Working group: Compiler Performance
When build with
cargo check
we only create crate metadata, which is enough to compile downstream crates. Crate metadata contains the MIR of many items. Usually, this MIR is optimized before being stored in metadata. Forcargo check
this doesn't make sense though because the MIR is only used for analysis, never for codegen. Let's not do this unnecessary work.The text was updated successfully, but these errors were encountered: