-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Remove special root for @
#13559
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 special root for @
#13559
Conversation
I believe this is a breaking change for scenarios using managed pointers. I'll update the commits accordingly. |
@flaper87 yes, I was going to mention that. |
@flaper87 so -- we definitely should see compilation errors for those tests. The reason we weren't is that my suggested changes to borrowck were incorrect. We basically want to treat |
Note: that patch I pointed you at leaves some dead code that can be cleaned up. And I think we can remove the |
@flaper87 this looks great; however, can you do a bit of cleanup:
|
@nikomatsakis roger that! re Unfortunately, this change is not ready to be merged, |
[breaking-change] cc rust-lang#11586
`@` pointers used to have special rooting and regions management. With `@` moving to standalone library, we don't need to keep that special treatment around. This patch modifies the way `@` pointers are treated by treating them as if they were `~` pointers Region checker and borrow checker were modified in this patch. Closes rust-lang#11586 [breaking-change]
This patch removes the special auto-rooting for `@` from the borrow checker. With `@` moving into a library, it doesn't make sense to keep this code around anymore. It also simplifies `trans` by removing root checking from there @nikomatsakis Closes: #11586
This patch removes the special auto-rooting for
@
from the borrow checker. With@
moving into a library, it doesn't make sense to keep this code around anymore. It also simplifiestrans
by removing root checking from there@nikomatsakis
Closes: #11586