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

compiler: Get rid of has_struct_const_info #46564

Merged
merged 1 commit into from
Aug 31, 2022
Merged

compiler: Get rid of has_struct_const_info #46564

merged 1 commit into from
Aug 31, 2022

Conversation

Keno
Copy link
Member

@Keno Keno commented Aug 31, 2022

This was introduced by me in #39684, but the commit message has
no discussion as to why has_struct_const_info and
has_nontrivial_const_info are not the same function.

Moreover, I don't think the isa(x, Conditional) branch ever
did anything because even at the time of the commit, tuple_tfunc
applied widenconditional to all incoming argtypes. That leaves
PartialTypeVar, which seems reasonable to just include in the
definition of has_nontrivial_const_info, so that we may be
consistent between tuple_tfunc and Expr(:new).

This was introduced by me in #39684, but the commit message has
no discussion as to why `has_struct_const_info` and
`has_nontrivial_const_info` are not the same function.

Moreover, I don't think the `isa(x, Conditional)` branch ever
did anything because even at the time of the commit, `tuple_tfunc`
applied `widenconditional` to all incoming argtypes. That leaves
`PartialTypeVar`, which seems reasonable to just include in the
definition of `has_nontrivial_const_info`, so that we may be
consistent between `tuple_tfunc` and `Expr(:new)`.
@Keno Keno merged commit 8fa066b into master Aug 31, 2022
@Keno Keno deleted the kf/rmhsci branch August 31, 2022 14:16
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