about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-31 06:22:57 +0000
committerbors <bors@rust-lang.org>2024-10-31 06:22:57 +0000
commit4d296eabe4c5cfbce9bb68e6221bca2165aae97b (patch)
tree9feba64683f870341913af6122d2fa218e588f97 /src/bootstrap
parentc8b83785dccdd22345d193fed7431ce44074007b (diff)
parent49a76c14c447acc032d4a5358a668a13160067f6 (diff)
downloadrust-4d296eabe4c5cfbce9bb68e6221bca2165aae97b.tar.gz
rust-4d296eabe4c5cfbce9bb68e6221bca2165aae97b.zip
Auto merge of #132384 - matthiaskrgr:rollup-0ze5wc4, r=matthiaskrgr
Rollup of 4 pull requests

Successful merges:

 - #132347 (Remove `ValueAnalysis` and `ValueAnalysisWrapper`.)
 - #132365 (pass `RUSTC_HOST_FLAGS` at once without the for loop)
 - #132366 (Do not enforce `~const` constness effects in typeck if `rustc_do_not_const_check`)
 - #132376 (Annotate `input` reference tests)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/bin/rustc.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bootstrap/src/bin/rustc.rs b/src/bootstrap/src/bin/rustc.rs
index 18f5a1a58db..88595ff7e51 100644
--- a/src/bootstrap/src/bin/rustc.rs
+++ b/src/bootstrap/src/bin/rustc.rs
@@ -175,9 +175,7 @@ fn main() {
         // Find any host flags that were passed by bootstrap.
         // The flags are stored in a RUSTC_HOST_FLAGS variable, separated by spaces.
         if let Ok(flags) = std::env::var("RUSTC_HOST_FLAGS") {
-            for flag in flags.split(' ') {
-                cmd.arg(flag);
-            }
+            cmd.args(flags.split(' '));
         }
     }