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 handling of experimental module compile flag #56945

Merged
merged 1 commit into from
Jan 6, 2025
Merged

fix handling of experimental module compile flag #56945

merged 1 commit into from
Jan 6, 2025

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jan 4, 2025

Add a new finish! function which skips any inference/optimization and just directly uses the (uninferred) source as the result, setting all fields correctly assuming they might have come from a generated function in the very unlikely case it set some of them, and making sure this is now correctly synchronized with the cache lookup and insertion calls once again.

This code feature was added without any tests in #37041, so I cannot guarantee there aren't any mistakes still lurking here, either mine or original.

Fixes #53431

@vtjnash vtjnash added bugfix This change fixes an existing bug compiler:inference Type inference labels Jan 4, 2025
Add a new `finish!` function which skips any inference/optimization and
just directly uses the (uninferred) source as the result, setting all
fields correctly assuming they might have come from a generated function
in the very unlikely case it set some of them, and making sure this is
now correctly synchronized with the cache lookup and insertion calls
once again.

This code feature was added without any tests in #37041, so I cannot
guarantee there aren't any mistakes still lurking here, either mine or
original, but it gets some testing by some _jll packages.

Fixes #53431
@vtjnash vtjnash merged commit a23a6de into master Jan 6, 2025
7 checks passed
@vtjnash vtjnash deleted the jn/53431 branch January 6, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regression in correctness of handling typeinf avoidance
1 participant