-
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
Rustc internal panic with feature(let_chains) #82250
Comments
Is it possible for you to share the code? |
@qiujiangkun It might be better for you to share the code which reproduces the issue on your nightly, 2021-02-11, so that I can try to reproduce it on the latest nightly build and possibly find the commit that might have introduced this issue. |
Okay, I'll trim down my base and share it later today. |
I deleted my whole project and got this #![feature(let_chains)]
pub struct Describer {}
impl Describer {
fn process_input(&mut self) {
let index = "1";
if let Ok(index) = index.parse::<usize>() && index < self.l2_items.len() {
self.select(index);
}
}
} |
Thanks @qiujiangkun. @rustbot label: -E-needs-mcve |
Not sure if this helps: I ran |
Issue: rust-lang/rust#82250
Duplicate of #82290. |
Lower condition of `if` expression before it's "then" block Fix rust-lang#82290, fix rust-lang#82250.
I tried this code:
Meta
rustc --version --verbose
:Note:
A simpler program does not crash, but does not compile.
rust-lang/rfcs#2411 (comment)
#53667
The text was updated successfully, but these errors were encountered: