Skip to content

Enums can't impl Drop (finalizer / destructor) #7026

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

Closed
brson opened this issue Jun 9, 2013 · 2 comments
Closed

Enums can't impl Drop (finalizer / destructor) #7026

brson opened this issue Jun 9, 2013 · 2 comments
Labels
A-destructors Area: Destructors (`Drop`, …) A-type-system Area: Type system

Comments

@brson
Copy link
Contributor

brson commented Jun 9, 2013

This limits the expressiveness of a lot of code. Enums are sometimes a good way to model object state, but they often can't be used.

@bblum
Copy link
Contributor

bblum commented Jun 11, 2013

nominating for well-defined milestone

@bblum
Copy link
Contributor

bblum commented Jun 11, 2013

oh, this already exists: dup of #6250

@bblum bblum closed this as completed Jun 11, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 8, 2021
Remove author requirement for `cargo_common_metadata`

This PR follows rust-lang/cargo#9282, I'm not fully informed about all of this, it would be great if somebody knowledgeable about this topic agrees.

changelog: Changed `cargo_common_metadata` to stop linting on the optional author field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-destructors Area: Destructors (`Drop`, …) A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants