Skip to content

Lint for parameters that could be ?SIzed #20945

Closed
@huonw

Description

@huonw

Generic parameters being ?Sized is more flexible than them being the default of Sized, so we could detect the cases when ?Sized is likely to work to assist library authors in being as inclusive as possible.

(This likely would've detected #20744.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions