Skip to content

Feature request: Lint on drop_in_place on types with no destructor #160127

Description

@theemathas

If someone calls std::ptr::drop_in_place on a type that is statically known to have no destructor (e.g., c_void, &mut T, u8, etc), it would be nice if the compiler could give a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions