From d59abcf9b372548cc1664fb2a2cf34fc900991de Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Fri, 22 Jul 2022 16:38:05 +0200 Subject: [PATCH] Check only tests and benches, not examples --- src/bootstrap/check.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs index 73de0627c4d0..972785c0cf78 100644 --- a/src/bootstrap/check.rs +++ b/src/bootstrap/check.rs @@ -340,10 +340,13 @@ impl Step for RustAnalyzer { "-Zallow-features=proc_macro_internals,proc_macro_diagnostic,proc_macro_span", ); - // For ./x.py clippy, don't run with --all-targets because + // For ./x.py clippy, don't check those targets because // linting tests and benchmarks can produce very noisy results if builder.kind != Kind::Clippy { - cargo.arg("--all-targets"); + // can't use `--all-targets` because `--examples` doesn't work well + cargo.arg("--bins"); + cargo.arg("--tests"); + cargo.arg("--benches"); } builder.info(&format!(