]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #48181 - michaelwoerister:fix-incr-dir-finalization, r=nikomatsakis
authorkennytm <kennytm@gmail.com>
Wed, 14 Feb 2018 08:14:48 +0000 (16:14 +0800)
committerkennytm <kennytm@gmail.com>
Wed, 14 Feb 2018 10:25:28 +0000 (18:25 +0800)
commitaccadb2ce5eaebfa8524d735e16d8d782df994c1
treef9ff3419366e768b1cb6a9c33c99ed4e6bb11c2c
parentdc9d93f220c2adb3d89936fb2d82e1bebad0ddc7
parent580dd42cfaefcb3189eab786224403ffe45bd37f
Rollup merge of #48181 - michaelwoerister:fix-incr-dir-finalization, r=nikomatsakis

incr.comp.: Run cache directory garbage collection before loading dep-graph.

Prior to this PR, the incr. comp. cache directory would only be garbage collected after the final output artifacts were generated. However, compilation often aborts earlier and in the case of the RLS, which starts lots of compilation sessions, we might fill up the cache directory with chunk sessions.

This PR makes the compiler do a garbage collection run before loading the dep-graph.

cc @nrc https://github.com/rust-lang/rust/issues/48172

r? @nikomatsakis