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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions