-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Chaining Arc<RefCell<..>> confuses borrowck. #26706
Comments
cc @pnkfelix is this an issue with destruction scopes specifically, or related to rvalue lifetimes in general? |
This is intentional well-known fallout of dropck - our current definition of |
The issue here is that the first borrow must be drop-valid during the destruction of the second borrow, but the current destruction-scope implementation requires it to be drop-valid for the entire |
cc #22321 |
this seems like a probable dupe of #22323 |
Yeah I think this is just a dupe of #22323 as well. |
http://is.gd/rNjThX
This should compile, but it does not. Breaking the chain is a workaround.
The text was updated successfully, but these errors were encountered: