Skip to content

DeMorgan for all/any in attrs #3176

Open
@llogiq

Description

@llogiq

We should lint attributes of the style #[cfg(all(not(_), not(_), ..))] and #[cfg(any(not(_), not(_), ..))] and suggest #[cfg(not(any(_, _, ..))] and #[cfg(not(all(_, _, ..))], respectively. Bonus points for further simplification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-styleLint: Belongs in the style lint groupS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation workT-ASTType: Requires working with the ASTT-macrosType: Issues with macros and macro expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions