Skip to content

Lint #[cfg(any(_))] / #[cfg(all(_))] attributes #3175

@llogiq

Description

@llogiq

We should lint cfg(any(one))/cfg(all(one)), because those any/alls don't pull their weight and may confuse readers. (The same goes for cfg_attr and cfg!() macros, obviously).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-styleLint: Belongs in the style lint groupT-ASTType: Requires working with the AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions