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

fix #40814, improve type stability of _totuple #41074

Merged
merged 1 commit into from
Jun 6, 2021
Merged

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Jun 3, 2021

Replaces #40987, as suggested by #40814.

We can simply add an annotation to force the return type to be propagated to a caller,
even when inference gives up anywhere in recursed calls.

@aviatesk aviatesk requested a review from vtjnash June 3, 2021 16:48
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing is a valid iterator state, and therefore can't be ignored. Please remove that part of the change.

@aviatesk
Copy link
Member Author

aviatesk commented Jun 3, 2021

Right. Done.

Copy link
Member

@simeonschaub simeonschaub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@aviatesk aviatesk merged commit f9eb8db into master Jun 6, 2021
@aviatesk aviatesk deleted the avi/fix40814-2 branch June 6, 2021 07:33
shirodkara pushed a commit to shirodkara/julia that referenced this pull request Jun 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
@KristofferC
Copy link
Member

This looks like it already is on the 1.7 branch so removing backport label.
https://github.com/JuliaLang/julia/blame/release-1.7/base/tuple.jl#L330-L334

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.

4 participants