do not use render_tests for clippy

Behind the scenes Clippy uses compiletest-rs, which doesn't support the
--json flag we added to Rust's compiletest.
This commit is contained in:
Pietro Albini 2023-03-02 17:10:29 +01:00
parent ad9a444241
commit f23e20569c
No known key found for this signature in database
GPG key ID: CD76B35F7734769E

View file

@ -767,7 +767,7 @@ impl Step for Clippy {
cargo.add_rustc_lib_path(builder, compiler);
if add_flags_and_try_run_tests(builder, &mut cargo.into()) {
if builder.try_run(&mut cargo.into()) {
// The tests succeeded; nothing to do.
return;
}