Skip to content

Commit c80333e

Browse files
committed
Fail the build if clippy tests don't pass
This was removed in rust-lang@de69d55#diff-8479eab02701e686aedb15b567dc8fc31220c6e4efb9565ccc9d662b7fee2214 which caused CI to ignore clippy failures. This adds back the exit, which should cause CI to fail again if a test is broken (like right now, as clippy tests are broken on master).
1 parent ce519c5 commit c80333e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/test.rs

+4
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,10 @@ impl Step for Clippy {
799799
// The tests succeeded; nothing to do.
800800
return;
801801
}
802+
803+
if !builder.config.cmd.bless() {
804+
crate::detail_exit_macro!(1);
805+
}
802806
}
803807
}
804808

0 commit comments

Comments
 (0)