]> git.lizzy.rs Git - rust.git/commit
Only emit save-analysis data for `cargo build` tasks
authorNick Cameron <ncameron@mozilla.com>
Tue, 17 Apr 2018 09:31:33 +0000 (21:31 +1200)
committerNick Cameron <ncameron@mozilla.com>
Tue, 17 Apr 2018 09:35:10 +0000 (21:35 +1200)
commitde34735ab249ffe6afdef94f27a1200fb77653f7
tree4e4d9aa617e90cb1d40d64de9933b61fefe5fb1b
parent6b12d361ff944517dc0513269badf8d575fc20e9
Only emit save-analysis data for `cargo build` tasks

Previously, we were emittinng analysis data for all tasks, including `doc`. That meant we got two sets of save-analysis data, one from the normal build and one from the docs. That means indexing with the RLS took twice as long and made downloads larger and build times longer.

cc https://github.com/rust-lang-nursery/rls/issues/826
src/bootstrap/builder.rs