Skip to content

False positive for C-like enums involving configuration-dependent constants #1134

Open
@DemiMarie

Description

@DemiMarie

My project includes C-like enums with discriminants that depend on the pointer width. This is done with cfg(target_pointer_width = "x") on consts. As a result, I get false positives from enum_clike_unportable_variant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions