Skip to content

specialize clone_from_slice for Copy types? #53265

@crlf0710

Description

@crlf0710

Just found that clone_from_slice emits worse code for Copy types than necessary. Wonder if it's possible to specialize it to emit the same code as copy_from_slice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions