Skip to content

Don't run MIR optimization passes during cargo check builds. #48662

Closed
@michaelwoerister

Description

@michaelwoerister

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. For cargo 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metadataArea: Crate metadataI-compiletimeIssue: Problems and improvements with respect to compile times.WG-compiler-performanceWorking group: Compiler Performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions