Skip to content

New Stacked Borrows, now with better support for interior mutability #513

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

Merged
merged 4 commits into from
Nov 8, 2018

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Nov 6, 2018

Waits on rust-lang/rust#55549 to land

@RalfJung
Copy link
Member Author

RalfJung commented Nov 8, 2018

The rustc PR landed, this is ready for review.

// Check borrow and stack item for compatibility.
match (itm, bor) {
(BorStackItem::FnBarrier(_), _) => {
return Err(format!("Trying to reactivate a borrow ({:?}) that lives \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has no tests that I could find

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Barriers are not implemented yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆 ok

@oli-obk oli-obk merged commit d136fdb into rust-lang:master Nov 8, 2018
@RalfJung RalfJung deleted the new-interior-mut branch November 30, 2018 08:26
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