Skip to content

Destructors cause warnings about explicit modes #3596

Closed
@catamorphism

Description

@catamorphism
Contributor

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.

Activity

catamorphism

catamorphism commented on Oct 1, 2012

@catamorphism
ContributorAuthor

Fixed -- I forgot to close this.

removed their assignment
on Jun 16, 2014
added a commit that references this issue on May 15, 2021

Merge pull request rust-lang#3596 from rchaser53/issue-3595

1922094
added a commit that references this issue on May 19, 2024

Auto merge of rust-lang#3596 - bend-n:support_fstar_algebraic, r=Ralf…

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-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @catamorphism

        Issue actions

          Destructors cause warnings about explicit modes · Issue #3596 · rust-lang/rust