Skip to content

fix: Skip match check on patterns of unexpected TyKind::FnDef #11899

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

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

iDawer
Copy link
Contributor

@iDawer iDawer commented Apr 4, 2022

Match checking does not expect patterns of TyKind::FnDef type.
It seems that in rustc match checking is ruled out due to such type errors at the typecheck stage.

Spotted in #11319

@Veykril
Copy link
Member

Veykril commented Apr 4, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 4, 2022

@bors bors bot merged commit 5a6918f into rust-lang:master Apr 4, 2022
@iDawer iDawer deleted the match-check.fix branch April 5, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants