Skip to content

unnecessarily explicit copy lint #3116

Closed
@nikomatsakis

Description

@nikomatsakis

We should add a lint mode that detects unnecessary uses of the word copy and warns about them. In my code, at least, I'd prefer to have copy written only where it needs to be---so that I can use it as a guide to where expensive copies are occurring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions