Skip to content

librustc: Make the Drop trait use explicit self - #4058

Closed
pcwalton wants to merge 1 commit into
rust-lang:incomingfrom
pcwalton:explicit-self-drop
Closed

librustc: Make the Drop trait use explicit self#4058
pcwalton wants to merge 1 commit into
rust-lang:incomingfrom
pcwalton:explicit-self-drop

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

r? @brson

@brson

brson commented Nov 28, 2012

Copy link
Copy Markdown
Contributor

r+

@brson

brson commented Nov 29, 2012

Copy link
Copy Markdown
Contributor

I notice that the self type can't be mutated in the finalizer. I can't imagine that is a major limitation but it could cause some unforeseen pain.

Could this property of types being immutable in the finalizer be used to safely allow finalizers on managed boxes, without zombies?

@pcwalton pcwalton closed this Nov 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants