-
Notifications
You must be signed in to change notification settings - Fork 13.4k
MIR borrowck: errors unreported in unreachable arms of match expressions #45043
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-borrow-checker
Area: The borrow checker
Comments
my idea of fix mikhail-m1@ff15f84, it works but doesn't finished |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
Note from @pnkfelix for people looking at this bug: See important soundness issue in ariel's issue.
In the following code the borrow error in the
z
arm isn't reported with MIR borrowck, but it is reported with AST borrowck:(compile with
-Z emit-end-regions -Z borrowck-mir
to use the MIR borrowck)The text was updated successfully, but these errors were encountered: