-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
unexpected panic Option::unwrap()
on a None
value' with NLL
#49097
Comments
I wasn't able to reproduce the ICE, but I believe it might have been triggered by the following code: rust/src/librustc_mir/borrow_check/nll/explain_borrow/mod.rs Lines 63 to 71 in 8aa27ee
If I am correct, then we just need to account for the case where Could you provide a minimized reproduction case? |
@estokes Any chance you could provide a minimized reproduction case? |
I'll try. |
Maybe fixed by @spastorino in #49808 |
This is probably fixed by my PR in #49808. |
@estokes Any chance in producing a reduced test case? |
@spastorino's PR landed so we should be able to easily tell |
I'm going to assume this is fixed and close -- @estokes please re-open if that is wrong! <3 |
This code blows up rustc 1.26.0-nightly (3926453 2018-03-15) with NLL enabled
txn is an Rc<RefCell<...>>
the project is using the following gated features
#![feature(conservative_impl_trait, nll)]
the backtrace from rustc is
The text was updated successfully, but these errors were encountered: