diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-12-28 13:28:29 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-02-28 22:01:45 -0500 |
| commit | 65f0b2549c35fb9cbfaa594ae190011187df1cec (patch) | |
| tree | 0a961c230e4caf58124679bdcf6f67a4e739aafa /compiler/rustc_mir/src/transform/coverage/graph.rs | |
| parent | fe1bf8e05c39bdcc73fc09e246b7209444e389bc (diff) | |
| download | rust-65f0b2549c35fb9cbfaa594ae190011187df1cec.tar.gz rust-65f0b2549c35fb9cbfaa594ae190011187df1cec.zip | |
Always compile rustdoc with debug logging enabled when `download-rustc` is set
Previously, logging at DEBUG or below would always be silenced, because rustc compiles tracing with the `static_max_level_info` feature. That makes sense for release artifacts, but not for developing rustdoc. Instead, this compiles two different versions of tracing: one in the release artifacts, distributed in the sysroot, and a new version compiled by rustdoc. Since `rustc_driver` is always linked to the version of sysroot, this copy/pastes `init_env_logging` into rustdoc. The builds the second version of tracing unconditionally; see the code for details on why.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
