Skip to content

False positive on enum_clike_unportable_variant #816

Open
@llogiq

Description

@llogiq
x = 1isize << 31; 

is okay as long as the specific bit pattern is of the essence; the actual value may vary.

E.g. see https://github.com/ledbettj/wavefile/blob/master/src/speakers.rs#L20

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions