Skip to content
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

analyze: fix deconstruct_hir_ty adt/path case #1023

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

spernsteiner
Copy link
Collaborator

Previously, type aliases for Option<*const T> caused a panic, as deconstruct_hir_ty would match the HIR alias with the MIR type Option<T> and then get confused due to the mismatched number of type arguments. With this fix, deconstruct_hir_ty will no longer match the HIR alias with the MIR type as the two have different DefIds.

@spernsteiner spernsteiner force-pushed the analyze-fix-deconstruct-type-alias branch from 6f837bb to 82af6d6 Compare September 8, 2023 16:28
@spernsteiner spernsteiner merged commit 0e9e404 into master Sep 8, 2023
9 checks passed
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