Skip to content

Commit 2e32905

Browse files
committed
Auto merge of #11041 - Alexendoo:nextest, r=Manishearth
Fix compile-test under cargo nextest Fixes #11036 changelog: none
2 parents c710b48 + 95ab05d commit 2e32905

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/compile-test.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ fn run_ui_cargo() {
212212
}
213213

214214
fn main() {
215+
// Support being run by cargo nextest - https://nexte.st/book/custom-test-harnesses.html
216+
if env::args().any(|arg| arg == "--list") {
217+
if !env::args().any(|arg| arg == "--ignored") {
218+
println!("compile_test: test");
219+
}
220+
221+
return;
222+
}
223+
215224
set_var("CLIPPY_DISABLE_DOCS_LINKS", "true");
216225
run_ui();
217226
run_ui_toml();

0 commit comments

Comments
 (0)