Rollup merge of #139707 - Kobzol:fix-comment, r=jieyouxu

Fix comment in bootstrap

Didn't notice it in https://github.com/rust-lang/rust/pull/139588.

r? ````@jieyouxu````
This commit is contained in:
Chris Denton 2025-04-13 03:07:08 +00:00 committed by GitHub
commit 34eca3b07c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,10 +150,7 @@ impl Step for ToolBuild {
// Rustc tools (miri, clippy, cargo, rustfmt, rust-analyzer)
// could use the additional optimizations.
if self.mode == Mode::ToolRustc &&
// rustdoc is performance sensitive, so apply LTO to it.
is_lto_stage(&self.compiler)
{
if self.mode == Mode::ToolRustc && is_lto_stage(&self.compiler) {
let lto = match builder.config.rust_lto {
RustcLto::Off => Some("off"),
RustcLto::Thin => Some("thin"),