Extend maybe_misused_cfg
to cover #[cfg(tests)]
#11240
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Description
An easy misspelling to make is to write something like:
This will not result in any warnings or errors currently, but will simply not run any of the tests. Clippy should instead output a warning:
Version
Additional Labels
@rustbot label +C-enhancement
The text was updated successfully, but these errors were encountered: