Closed JakkuSakura closed 3 years ago
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 lib.rs
#![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 bisect-rustc
on my host target x86_64-pc-windows-msvc
, and it is shown that it ICEd back in 2018 (even before the initial implementation of the let_chains
feature.
Duplicate of https://github.com/rust-lang/rust/issues/82290.
I tried this code:
Meta
rustc --version --verbose
:Note: A simpler program does not crash, but does not compile. https://github.com/rust-lang/rfcs/issues/2411#issuecomment-575346318
https://github.com/rust-lang/rust/issues/53667