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

cleanup old builtins #57532

Merged
merged 1 commit into from
Mar 2, 2025
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Feb 25, 2025

The _apply_pure function only has one user, and that user is unsound anyways and should not be used, so replace that with equivalent _call_in_world_total call and remove unnecessary definitions.

The awkward distinction between invokelatest and _call_latest has not been relevant (and indeed causes performance issues) since kwfunc was introduced in #47157.

@vtjnash vtjnash added the backport 1.12 Change should be backported to release-1.12 label Feb 25, 2025
@KristofferC KristofferC mentioned this pull request Feb 26, 2025
39 tasks
@vtjnash vtjnash force-pushed the jn/invokelatest-builtins-cleanup branch 3 times, most recently from 54f9083 to d16b657 Compare February 27, 2025 20:00
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Feb 27, 2025
@topolarity
Copy link
Member

FYI, I get this warning when building:

┌ Warning: Failed to precompile expression
│   form = precompile(Tuple{typeof(Base.invokelatest), Any})
└ @ nothing nothing:0

The `_apply_pure` function only has one user, and that user is unsound
anyways and should not be used, so replace that with equivalent
`_call_in_world_total` call and remove unnecessary definitions.

The awkward distinction between `invokelatest` and `_call_latest` has
not been relevant (and indeed causes performance issues) since kwfunc
was introduced in #47157.
@vtjnash vtjnash force-pushed the jn/invokelatest-builtins-cleanup branch from d16b657 to bf78a52 Compare February 28, 2025 15:45
@IanButterworth IanButterworth merged commit 671c6a1 into master Mar 2, 2025
7 checks passed
@IanButterworth IanButterworth deleted the jn/invokelatest-builtins-cleanup branch March 2, 2025 04:40
KristofferC pushed a commit that referenced this pull request Mar 3, 2025
The `_apply_pure` function only has one user, and that user is unsound
anyways and should not be used, so replace that with equivalent
`_call_in_world_total` call and remove unnecessary definitions.

The awkward distinction between `invokelatest` and `_call_latest` has
not been relevant (and indeed causes performance issues) since kwfunc
was introduced in #47157.

(cherry picked from commit 671c6a1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.12 Change should be backported to release-1.12 merge me PR is reviewed. Merge when all tests are passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants