We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2cf56 commit ecfc899Copy full SHA for ecfc899
src/cargo/core/compiler/mod.rs
@@ -409,7 +409,17 @@ fn rustc(
409
)
410
},
411
412
- .map_err(verbose_if_simple_exit_code)
+ .map_err(|e| {
413
+ if output_options.errors_seen == 0 {
414
+ // If we didn't expect an error, do not require --verbose to fail.
415
+ // This is intended to debug
416
+ // https://github.com/rust-lang/crater/issues/733, where we are seeing
417
+ // Cargo exit unsuccessfully while seeming to not show any errors.
418
+ e
419
+ } else {
420
+ verbose_if_simple_exit_code(e)
421
+ }
422
+ })
423
.with_context(|| {
424
// adapted from rustc_errors/src/lib.rs
425
let warnings = match output_options.warnings_seen {
0 commit comments