Skip to content

incr.comp.: Make sure cargo check is compatible with incremental compilation. #46058

Open
@michaelwoerister

Description

@michaelwoerister

So far incremental compilation did not bring any benefit for cargo check because incremental compilation only cached post-trans artifacts and the whole point of cargo check is to exit from compilation before the costly trans and LLVM parts.

With #46004 this has changed and we'll keep adding more and more things to this pre-trans cache. As a consequence we should make sure that cargo check works in conjunction with CARGO_INCREMENTAL=1. It already might but we've never tested it and have no regression tests.

cc @nikomatsakis @rust-lang/cargo

Metadata

Metadata

Assignees

Labels

A-incr-compArea: Incremental compilationC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-cargoRelevant to the cargo team, which will review and decide on the PR/issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-incr-compWorking group: Incremental compilation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions