Skip to content

Warn on unused/unnecessary trait bounds #1463

Open
@gsingh93

Description

@gsingh93

I sometimes overspecify the trait bounds on an impl by accident. In many cases, some of the bounds aren't actually needed. It would be nice to have a lint I could run to warn me whenever I've done this so I could clean it up.

There are cases when you want to overspecify the trait boundaries so you can add things to them without breaking backwards compatibility, but in these cases you'd just ignore the lint or turn it off.

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