incr.comp.: Make sure cargo check
is compatible with incremental compilation.
#46058
Labels
A-incr-comp
Area: Incremental compilation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-cargo
Relevant to the cargo team, which will review and decide on the PR/issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-incr-comp
Working group: Incremental compilation
So far incremental compilation did not bring any benefit for
cargo check
because incremental compilation only cached post-trans artifacts and the whole point ofcargo 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 withCARGO_INCREMENTAL=1
. It already might but we've never tested it and have no regression tests.cc @nikomatsakis @rust-lang/cargo
The text was updated successfully, but these errors were encountered: