cargo rustc --benches -- -Awarnings fails (on both nightly and stable):
error: extra arguments to `rustc` can only be passed to one target, consider filtering
the package by passing, e.g., `--lib` or `--bin NAME` to specify a single target
Any tips, please?
The same error for cargo rustc --tests -- -Awarnings. If, hopefully with your help, I fix whatever mistake I'm doing, should applying it to tests work even if I also have benches/*? (Are benches and tests completely independent?) My benches are with Criterion, and with the following, if it matters:
What are you trying to achieve? cargo rustc allows to rustc with whatever parameters. If you want to check for warnings - there's cargo check or cargo bench...
One thing that's new since that link is the lints section of the manifest, which applies to your own code and not your dependencies. So you could have a bit like this in Cargo.toml:
[lints.rust]
warnings = "allow"
... and tweak that as your development progresses.