]> git.lizzy.rs Git - rust.git/commit
Lazify is_really_default condition in the RustdocGUI bootstrap step
authorThe8472 <git@infinite-source.de>
Tue, 8 Jun 2021 21:09:56 +0000 (23:09 +0200)
committerThe8472 <git@infinite-source.de>
Wed, 16 Jun 2021 22:17:17 +0000 (00:17 +0200)
commitbde95700691cad1c508eb396e190a9d8638f024f
tree645f77f90dd524e129ad0624add8db631600adc4
parent9fef8d91b4a6c5bfe07c025c434f2d623ad83337
Lazify is_really_default condition in the RustdocGUI bootstrap step

The `RustdocGUI::should_run` condition spawns `npm list` several times
which adds up to seconds of wall-time.
Evaluate the condition lazily to to keep `./x.py test tidy` and similar
short-running tasks fast.
Cargo.lock
src/bootstrap/Cargo.toml
src/bootstrap/builder.rs
src/bootstrap/test.rs