Skip to content

ParseCallbacks::add_derives() should not cause a trait to be derived twice #3286

@ivmaykov

Description

@ivmaykov

If you use ParseCallbacks::add_derives() and add a trait that's already being derived automatically, it will cause the trait to be listed twice, which leads to a compile error.

I have a fix, just need to add some tests and then submit a PR. Will do it after RustConf, either on Friday or early next week.

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