about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2025-04-13 03:07:08 +0000
committerGitHub <noreply@github.com>2025-04-13 03:07:08 +0000
commit34eca3b07c47a1f8d70a6ed4b07b28dc4e8cfece (patch)
tree92e51fcfec86b4fe69087f4b1b60dd532211f298
parentb0c0ff97b61bb7ff426bcbeba1cd3c82ba3d5b66 (diff)
parentddf8237bcb05272a677cba46cffa0296b7477809 (diff)
downloadrust-34eca3b07c47a1f8d70a6ed4b07b28dc4e8cfece.tar.gz
rust-34eca3b07c47a1f8d70a6ed4b07b28dc4e8cfece.zip
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````
-rw-r--r--src/bootstrap/src/core/build_steps/tool.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs
index 1c61f0a56d7..ded7220fced 100644
--- a/src/bootstrap/src/core/build_steps/tool.rs
+++ b/src/bootstrap/src/core/build_steps/tool.rs
@@ -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"),