-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
task 'rustc' panicked at 'assertion failed: (left == right) && (right == left)
(left: None
, right: Some(())
)'
#19851
Labels
A-type-system
Area: Type system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
I get the same thing on Linux, with the same Rust build as you. Here's a smaller example and a backtrace: use std::collections::HashMap;
fn main() {
let mut map = HashMap::new();
let key = 7u;
let item = map.get(&key);
if (item.is_some() && item.unwrap().eq(8i)) {
return;
}
map.insert(key, 7u);
}
|
This should be fixed by #19813, I think. (Wow, there are more and more issues related to that bug!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-type-system
Area: Type system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
when i try to compile my code, i get:
rustc info
my system
the 'bad' code
The text was updated successfully, but these errors were encountered: