Skip to content

Destructors cause warnings about explicit modes #3596

Closed
@catamorphism

Description

@catamorphism

With deprecated_modes set to warn or forbid, the compiler complains about argument 1 of drop for anything that has a destructor. This is confusing to the user, but happens because dtors implicitly have an argument (whose mode is always by_ref). I'm on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions