-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Unexpected definition for an identifier in pattern Err #34933
Comments
This actually triggers #34929 on beta so chances are they are the same issue or at least related? |
And a test case: https://is.gd/tDdrzI use missing;
impl Test {
pub fn test(&self, missing: &A) -> Option<Vec<missing::B>> {
match *missing {
A::Missing{keycode, ..} => {
unimplemented!()
},
_ => {}
}
None
}
} The reduced case doesn't trigger #34929 so it was most likely me running into two bugs at once. Beta and stable don't show the issue only nightly |
Interesting, thanks. |
resolve: Fix ICE and extra diagnostics happening when unresolved imports are used in patterns Closes rust-lang#34933 r? @jseyfried
Happened on a private project so I can't release the source and I haven't been able to reduce it down to a small test case yet. It happened when I removed a large number of modules to move into a crate without updating the
use
s.The text was updated successfully, but these errors were encountered: