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

Remove classes #3088

Closed
brson opened this issue Aug 2, 2012 · 6 comments
Closed

Remove classes #3088

brson opened this issue Aug 2, 2012 · 6 comments
Labels
A-typesystem Area: The type system
Milestone

Comments

@brson
Copy link
Contributor

brson commented Aug 2, 2012

No description provided.

@astavonin
Copy link
Contributor

Are you planning return resources?

@bblum
Copy link
Contributor

bblum commented Aug 2, 2012

as long as there remains a way to run destructors with heap-based lifetimes. TLS works this way. taskgroups do too, though could be made not to with a bunch of hoop-jumping.

@catamorphism
Copy link
Contributor

@astavonin I believe that we agreed that you can get resource functionality by implementing a special, wired in trait that has one method, drop. The thing blocking this was coherence, but now we do have coherence. This special trait is not implemented yet AFAIK, but it will be.

@catamorphism
Copy link
Contributor

BTW, the issue for adding the special wired-in trait for drop is #3061.

@astavonin
Copy link
Contributor

Thanks, I did not notice it.

@pcwalton
Copy link
Contributor

Closing this in favor of #3061.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
rewrite: adjust comment as it refers to `is_if_else_block`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typesystem Area: The type system
Projects
None yet
Development

No branches or pull requests

5 participants