about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-12-10 13:51:14 +0100
committerGitHub <noreply@github.com>2024-12-10 13:51:14 +0100
commitc42c248009747366e646a3ad1ce6e8f815ea7db2 (patch)
treea79d929442dff21dbd90fdfdc51bbe54898a1f65
parent0f1b827881d20ba08f72d692ccd3ff97a0e25851 (diff)
parent604ba9214d132c5b601f57dae2a161be35953b9f (diff)
downloadrust-c42c248009747366e646a3ad1ce6e8f815ea7db2.tar.gz
rust-c42c248009747366e646a3ad1ce6e8f815ea7db2.zip
Rollup merge of #134123 - Zalathar:json-output, r=jieyouxu,clubby789
bootstrap: Forward cargo JSON output to stdout, not stderr

This fixes the RA errors I've been seeing on proc-macros after the re-landing of #134040.

r? clubby789
-rw-r--r--src/bootstrap/src/core/build_steps/compile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
index 4419b11ac19..93f8091299f 100644
--- a/src/bootstrap/src/core/build_steps/compile.rs
+++ b/src/bootstrap/src/core/build_steps/compile.rs
@@ -2261,7 +2261,7 @@ pub fn stream_cargo(
             Ok(msg) => {
                 if builder.config.json_output {
                     // Forward JSON to stdout.
-                    eprintln!("{line}");
+                    println!("{line}");
                 }
                 cb(msg)
             }