Open
Description
Problem
As mentioned in the original tracking issue
Some lints are crate specific, like only wanting
missing_docs
andmissing_debug_implementations
for[lib]
s (#12115 (comment))
Having to add an #![allow(missing_docs)]
to every test crate because they don't have any crate-level docs is annoying. The alternative of still using an in-code #![warn(missing_docs)]
in src/lib.rs
misses out on the benefits of a workspace-level lint config, like forgetting to add it to a new crate.
Proposed Solution
Being able to somehow configure different sets of lints for lib
, bin
, test
, etc. crates.
Notes
No response