Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructors cause warnings about explicit modes #3596

Closed
catamorphism opened this issue Sep 26, 2012 · 1 comment
Closed

Destructors cause warnings about explicit modes #3596

catamorphism opened this issue Sep 26, 2012 · 1 comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Milestone

Comments

@catamorphism
Copy link
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.

@ghost ghost assigned catamorphism Sep 26, 2012
@catamorphism
Copy link
Contributor Author

Fixed -- I forgot to close this.

@catamorphism catamorphism removed their assignment Jun 16, 2014
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

1 participant