Skip to content

How to truncate if const _ = !0; was used #443

@rusty-snake

Description

@rusty-snake

I'm in the situation where a bitflags type from a third-party crate uses const _ = !0; (i.e. I can not modify the bitflags! definition and add/remove flags). I need the complement of all known/defined flags. However I do not see a way to truncate/... theses flags in this case or do a complement_defined or access FooFlags::_ or whatever. I can not even tell if there are extra bits set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions