-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inference: fix vararg normalization in rewrap #39134
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
##################### | ||
|
||
function rewrap(@nospecialize(t), @nospecialize(u)) | ||
if isa(t, TypeVar) || isa(t, Type) | ||
if isa(t, TypeVar) || isa(t, Type) || isa(t, Core.TypeofVararg) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did add a specialization of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the || already makes it pretty explicit. We can consider other designs later as continued clean up, but this seems to fix CI regression for now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alright |
||
return rewrap_unionall(t, u) | ||
end | ||
return t | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is somewhat hot. Move this check all the way down to the
===
check?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think a pointer comparison will affect this, relative to the many other egal and subtyping test it does