Cargo check should allow disabling warnings (original) (raw)

There are a lot of compiler warnings that are noisy and useless during development, such as dead_code. Unfortunately, cargo check does not have any way of disabling these warnings. There needs to be a way to disable specific warnigns when running cargo check.

So far, the only workaround I've found is export RUSTFLAGS='-A dead_code', which is ugly and undiscoverable, and you have to remember to undo it when you are ready for release.