Skip to content

by-value methods show as inherited by Deref in Rustdoc #30607

Closed
@elinorbgr

Description

@elinorbgr

See for example: http://vberger.github.io/wayland-client-rs/wayland_client/cursor/struct.CursorImageBuffer.html

Unless the target type is Copy, it is not possible to call a method taking a self argument (it would result in a "cannot move out of borrowed content" error), so showing these methods as available in the docs is erroneous.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions