Auto merge of #11041 - Alexendoo:nextest, r=Manishearth

Fix compile-test under cargo nextest

Fixes https://github.com/rust-lang/rust-clippy/issues/11036

changelog: none
This commit is contained in:
bors 2023-06-27 18:56:48 +00:00
commit 2e329050c9
1 changed files with 9 additions and 0 deletions

View File

@ -212,6 +212,15 @@ fn run_ui_cargo() {
}
fn main() {
// Support being run by cargo nextest - https://nexte.st/book/custom-test-harnesses.html
if env::args().any(|arg| arg == "--list") {
if !env::args().any(|arg| arg == "--ignored") {
println!("compile_test: test");
}
return;
}
set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
run_ui();
run_ui_toml();