-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
ICE: None
in compiler/rustc_mir_build/src/build/matches/mod.rs
#119786
Comments
This is really weird, it only happens when the binding is a keyword..., is the PR doing recovery incorrectly? |
@Nilstrieb: It's recovering the keyword as a wildcard. This also ICEs, probably doesn't bisect to that PR but before it: #![feature(type_alias_impl_trait)]
fn enum_upvar() {
type T = impl Copy;
let foo: T = Some((1u32, 2u32));
let x = move || {
match foo {
None => (),
Some(_) => (),
}
};
} |
Haha, I was trying to properly minimize this to be able to properly bisect it and turned it into an ident pattern which was fine, it didn't occur to me that it would recover to a wildcard :D. |
None
in as_place.rsNone
in compiler/rustc_mir_build/src/build/matches/mod.rs
#119786 (comment) this Regression in nightly-2022-03-31 fetching (via remote github) commits from max(9c06e1b, 2022-03-28) to c5cf08d |
snippet:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc --edition=2021
Program output
The text was updated successfully, but these errors were encountered: