You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program does not compile. rustc corerctly identifies my error (writing Ok instead of Some when destructuring an Option). However it also gives an ICE after the error.
fn main() {
let a = Some(~1);
match a {
Ok(a) => println!("{}",a),
None => fail!()
}
}
the ICE:
$ rustc error.rs
error.rs:13:9: 13:14 error: mismatched types: expected `std::option::Option<~<ge
neric integer #0>>` but found `std::result::Result<<generic #11>,<generic #12>>`
(expected enum std::option::Option but found enum std::result::Result)
error.rs:13 Ok(a) => println!("{}",a),
^~~~~
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complem
ent-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
task 'rustc' failed at 'index out of bounds: the len is 0 but the index is 0', D
:\Heather\Contrib\P\rust\src\librustc\middle\typeck\check\vtable.rs:255
…rm-underscore-check, r=flip1995
Remove underscore check for `manual_non_exhaustive` lint
Fixesrust-lang/rust-clippy#10550.
As indicated in rust-lang/rust-clippy#10559, the underscore check should be removed.
changelog: remove underscore check for `manual_non_exhaustive` lint
r? `@blyxyas`
This program does not compile. rustc corerctly identifies my error (writing Ok instead of Some when destructuring an Option). However it also gives an ICE after the error.
the ICE:
version of rustc
The text was updated successfully, but these errors were encountered: