Skip to content

Compiler: fix unsoundness of getfield_tfunc on Tuple Types #57275

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

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Feb 5, 2025

This was noted in the original review of that PR by the PR author, but was for some reason not fixed at that time: #46693 (comment)

@vtjnash vtjnash added compiler:inference Type inference backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 labels Feb 5, 2025
@JeffBezanson JeffBezanson added the needs tests Unit tests are required for this change label Feb 5, 2025
@KristofferC KristofferC mentioned this pull request Feb 6, 2025
32 tasks
@vtjnash
Copy link
Member Author

vtjnash commented Feb 6, 2025

Which sort of test do you want to see here?

@oscardssmith
Copy link
Member

Presumably a test where isTypeDataType gave an incorrect result before that this fixes.

@vtjnash vtjnash added merge me PR is reviewed. Merge when all tests are passing and removed needs tests Unit tests are required for this change labels Feb 12, 2025
This was noted in the original review of that PR, but was for some
reason not fixed at that time: #46693 (comment)
@vtjnash vtjnash merged commit db874ff into master Feb 13, 2025
5 of 7 checks passed
@vtjnash vtjnash deleted the jn/56910 branch February 13, 2025 17:10
@oscardssmith oscardssmith removed the merge me PR is reviewed. Merge when all tests are passing label Feb 13, 2025
KristofferC pushed a commit that referenced this pull request Feb 14, 2025
This was noted in the original review of that PR by the PR author, but
was for some reason not fixed at that time:
#46693 (comment)

(cherry picked from commit db874ff)
@KristofferC KristofferC mentioned this pull request Feb 14, 2025
31 tasks
KristofferC pushed a commit that referenced this pull request Feb 14, 2025
This was noted in the original review of that PR by the PR author, but
was for some reason not fixed at that time:
#46693 (comment)

(cherry picked from commit db874ff)
KristofferC added a commit that referenced this pull request Feb 17, 2025
Backported PRs:
- [x] #57346 <!-- lowering: Only try to define the method once -->
- [x] #57341 <!-- bpart: When backdating replace the entire bpart chain
-->
- [x] #57381 <!-- staticdata: Set min validation world to require world
-->
- [x] #57357 <!-- Only implicitly `using` Base, not Core -->
- [x] #57383 <!-- staticdata: Fix typo in recursive edge revalidation
-->
- [x] #57385 <!-- bpart: Move kind enum into its intended place -->
- [x] #57275 <!-- Compiler: fix unsoundness of getfield_tfunc on Tuple
Types -->
- [x] #57378 <!-- print admonition for auto-import only once per module
-->
- [x] #57392 <!-- [LateLowerGCFrame] fix PlaceGCFrameReset for
returns_twice -->
- [x] #57388 <!-- Bump JuliaSyntax to v1.0.2 -->
- [x] #57266 <!-- 🤖 [master] Bump the Statistics stdlib from d49c2bf to
77bd570 -->
- [x] #57395 <!-- lowering: fix has_fcall computation -->
- [x] #57204 <!-- Clarify mathematical definition of `gcd` -->
- [x] #56794 <!-- Make `Pairs` public -->
- [x] #57407 <!-- staticdata: corrected implementation of
jl_collect_new_roots -->
- [x] #57405 <!-- bpart: Also partition the export flag -->
- [x] #57420 <!-- Compiler: Fix check for IRShow definedness -->
- [x] #55875 <!-- fix `(-Inf)^-1` inconsistency -->
- [x] #57317 <!-- internals: add _defaultctor function for defining
ctors -->
- [x] #57406 <!-- bpart: Ignore guard bindings for ambiguity purposes
-->
- [x] #49933 <!-- Allow for :foreigncall to transition to GC safe
automatically -->
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Feb 17, 2025
@KristofferC KristofferC removed the backport 1.11 Change should be backported to release-1.11 label Feb 24, 2025
serenity4 pushed a commit to serenity4/julia that referenced this pull request May 1, 2025
…#57275)

This was noted in the original review of that PR by the PR author, but
was for some reason not fixed at that time:
JuliaLang#46693 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants