Skip to content

Commit f0be145

Browse files
committed
drive-by cleanup of rustdoc comment
1 parent 572c0d5 commit f0be145

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/librustdoc/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ pub fn main() {
156156

157157
rustc_driver::install_ice_hook();
158158

159-
// When using CI artifacts (with `download_stage1 = true`), tracing is unconditionally built
159+
// When using CI artifacts with `download-rustc`, tracing is unconditionally built
160160
// with `--features=static_max_level_info`, which disables almost all rustdoc logging. To avoid
161161
// this, compile our own version of `tracing` that logs all levels.
162162
// NOTE: this compiles both versions of tracing unconditionally, because
163163
// - The compile time hit is not that bad, especially compared to rustdoc's incremental times, and
164-
// - Otherwise, there's no warning that logging is being ignored when `download_stage1 = true`.
165-
// NOTE: The reason this doesn't show double logging when `download_stage1 = false` and
164+
// - Otherwise, there's no warning that logging is being ignored when `download-rustc` is enabled
165+
// NOTE: The reason this doesn't show double logging when `download-rustc = false` and
166166
// `debug_logging = true` is because all rustc logging goes to its version of tracing (the one
167167
// in the sysroot), and all of rustdoc's logging goes to its version (the one in Cargo.toml).
168168
init_logging();

0 commit comments

Comments
 (0)