-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
MIR borrowck: error does not know about free/named lifetimes #46472
Comments
Some mentoring notes: The error is issued here: rust/src/librustc_mir/borrow_check/mod.rs Lines 2374 to 2382 in 7b637b7
Note in particular the call to rust/src/librustc_mir/borrow_check/mod.rs Line 2381 in 7b637b7
I think the first thing to add a new parameter to rust/src/librustc_mir/borrow_check/mod.rs Lines 2363 to 2368 in 7b637b7
It's going to need access to the borrow that does not live long enough. The callers ought to have a variable In that case, we can match on |
I'm interested in handling this. |
MIR borrowck: error message confuses locals and temporaries Fixes #46471 and fixes #46472 (see [this Gitter comment](https://gitter.im/rust-impl-period/WG-compiler-nll?at=5a2d5cb53ae2aa6b3facf0c2)). r? @arielb1
Oh, closed? Ok, moving to something else. |
e.g.
Gives the following errors for AST and MIR borrowck - the MIR error should be more like the AST error
The text was updated successfully, but these errors were encountered: