Skip to content

derive(Yokeable) can trigger clippy::mem_forget #6786

@robofinch

Description

@robofinch

clippy::mem_forget is a lint in the restriction group (so it's probably not as common), which fires when Yokeable is derived on a struct with a type that implements Drop, like MutexGuard<'a, _>.

I'm sure this will not be the last time something like #4152 is needed.

Minimal reproducible example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=757453c6265ea87035df2fcae691289c

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