Skip to content

prost-build generates invalid code when combined with -Zfmt-debug=none #1418

@bluec0re

Description

@bluec0re

The enumeration attribute uses {:?} to format the type path, resulting in enumeration = , code when debug output is elided.

I think this can be fixed by using enumeration = "{}" instead, but I'm not sure if there is the possibility of unprintable characters or quotes here. I don't think so as this is using idents? Also the code just below doesn't care about these theoretical edge cases and uses {} instead. So either it is safe to use {} (and {:?} only really adds the quotes) or both needs to be fixed.

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