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

handle deconstruct_hir_ty for function pointers #1019

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Conversation

aneksteind
Copy link
Contributor

@aneksteind aneksteind commented Aug 9, 2023

Fixes #992. Prior to this we had no support for deconstructing the HIR ty of a function to get its arguments, which caused handle_ty to not generate any rewrites for function pointers in struct fields. This adds support for deconstructing the signatures by first asserting that the inputs and output of an HIR function signature match the length of the MIR function signature and then packages the inputs and outputs of the HIR signature into a vector.

@aneksteind aneksteind force-pushed the feat.fp.hypo branch 4 times, most recently from 3b6876d to f2815aa Compare August 9, 2023 17:19
…ause we are rewriting an implicit return type of (). assert that this is not the case
@aneksteind aneksteind merged commit f22c692 into master Aug 28, 2023
9 checks passed
@aneksteind aneksteind deleted the feat.fp.hypo branch August 28, 2023 21:32
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.

analyze: missing hypothetical lifetimes within function pointer types
2 participants