Skip to content

The bitflags macro is not sanitary wrt. standard library types and enumerations #265

@chorman0773

Description

@chorman0773

The bitflags macro, expanded in the prescence of a definition of the type/value Ok errors.
Reproduction code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3fda3e36c7c6a57e0f7a83c84e56df20

Interestingly, the relevant function, the fmt function from the Debug impl, does use ::bitflags::_core::fmt::Result, however, it merely returns the value Ok(()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions