cargo/tests
bors 58790d3b5e Auto merge of #10305 - weihanglo:issue-10268, r=alexcrichton
do not compile test for bins flagged as `test = false`

### What does this PR try to resolve?

Fixes #10268

#6683 introduced a behavior that compiles all bin targets, but for bins with `test = false` they shouldn't be compiled with `--test` as testbins.

### How should we test and review this PR?

In the first commit of this PR, I refines the test `test_filtered_excludes_compiling_examples` to reflect the current wrong behavior (test passed). The following two commits correct the behavior and the test accordingly. The last few commits encapsulate scattered target selection logic into functions on `CompileFilter`.
2022-01-20 15:07:43 +00:00
..
build-std Fix build-std updating the index on every build. 2021-04-22 17:18:26 -07:00
testsuite Auto merge of #10305 - weihanglo:issue-10268, r=alexcrichton 2022-01-20 15:07:43 +00:00
internal.rs Update clippy lint allow set. 2021-04-13 09:02:07 -07:00