-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Always unwind through a Resume and other fixes #46320
Conversation
☔ The latest upstream changes (presumably #46142) made this pull request unmergeable. Please resolve the merge conflicts. |
f44b4d4
to
3ef4f0a
Compare
Ready for review |
☔ The latest upstream changes (presumably #46041) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found the tests after all.
src/librustc_mir/borrow_check.rs
Outdated
PrefixSet::Shallow | ||
}; | ||
|
||
self.prefixes(lvalue, prefix_set).any(|prefix| prefix == root_lvalue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests?
r=me post rebase |
dd2aaf5
to
5da76cc
Compare
@bors r=nikomatsakis |
📌 Commit 5da76cc has been approved by |
☔ The latest upstream changes (presumably #46425) made this pull request unmergeable. Please resolve the merge conflicts. |
Region inference can create borrows for an empty region if the borrow is dead. In that case, there's no reason to track the borrow, but because there's no such thing as an EndRegion(ReEmpty) these borrows used to live for the entire function. Fixes rust-lang#46161.
This simplifies analysis and borrow-checking because liveness at the resume point can always be simply propagated. Later on, the "dead" Resumes are removed.
5da76cc
to
6594799
Compare
@bors r=nikomatsakis |
📌 Commit 6594799 has been approved by |
Always unwind through a Resume and other fixes Should fix most of the small MIR borrowck issues. r? @nikomatsakis
💔 Test failed - status-travis |
Two of the new tests failed with WASM.
|
@bors r=nikomatsakis |
📌 Commit ff0b84d has been approved by |
Always unwind through a Resume and other fixes Should fix most of the small MIR borrowck issues. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Should fix most of the small MIR borrowck issues.
r? @nikomatsakis