Skip to content

Commit 50f2b5d

Browse files
authored
Rollup merge of rust-lang#75057 - Mark-Simulacrum:avoid-long-print, r=alexcrichton
Avoid dumping rustc invocations to stdout These are quite long, usually, and in most cases not interesting. On smaller terminals they can take up more than a full page of output, hiding the error diagnostics emitted.
2 parents 595a2f5 + cc7abc7 commit 50f2b5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/bin/rustc.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ fn main() {
171171
// note: everything below here is unreachable. do not put code that
172172
// should run on success, after this block.
173173
}
174-
println!("\nDid not run successfully: {}\n{:?}\n-------------", status, cmd);
174+
if verbose > 0 {
175+
println!("\nDid not run successfully: {}\n{:?}\n-------------", status, cmd);
176+
}
175177

176178
if let Some(mut on_fail) = on_fail {
177179
on_fail.status().expect("Could not run the on_fail command");

0 commit comments

Comments
 (0)