Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d59abcf

Browse files
Check only tests and benches, not examples
1 parent 9cf485c commit d59abcf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bootstrap/check.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,13 @@ impl Step for RustAnalyzer {
340340
"-Zallow-features=proc_macro_internals,proc_macro_diagnostic,proc_macro_span",
341341
);
342342

343-
// For ./x.py clippy, don't run with --all-targets because
343+
// For ./x.py clippy, don't check those targets because
344344
// linting tests and benchmarks can produce very noisy results
345345
if builder.kind != Kind::Clippy {
346-
cargo.arg("--all-targets");
346+
// can't use `--all-targets` because `--examples` doesn't work well
347+
cargo.arg("--bins");
348+
cargo.arg("--tests");
349+
cargo.arg("--benches");
347350
}
348351

349352
builder.info(&format!(

0 commit comments

Comments
 (0)