Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cc7abc7

Browse files
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.
1 parent 1e99138 commit cc7abc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 3 additions & 1 deletion
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)