cargo-cranky icon indicating copy to clipboard operation
cargo-cranky copied to clipboard

Support `forbid` lint level

Open Kromey opened this issue 2 years ago • 0 comments

Like deny, forbid turns lints into errors; unlike deny, however, forbid cannot be overridden. https://doc.rust-lang.org/rustc/lints/levels.html

For projects or organizations that want to take a "hardline" stance on certain lints (e.g. unsafe_code), having cargo-cranky support the forbid lint level could be very important.

(NB: There's also a force-warn lint level that is a non-overridable counterpart to warn, and may also be desirable in some instances.)

Kromey avatar Feb 02 '23 21:02 Kromey