Per-crate-type [lint]
configuration
#15046
Labels
A-lints
Area: rustc lint configuration
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
As mentioned in the original tracking issue
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)]
insrc/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
The text was updated successfully, but these errors were encountered: