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

Use _return_type from Base, not from Core.Compiler #819

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

serenity4
Copy link
Contributor

Starting from JuliaLang/julia#56409, we no longer have Base._return_type === Core.Compiler._return_type, and therefore Core.Compiler._return_type calls the wrong function on nightly, triggering an error. This PR should ensure a more stable access to this binding.

These used to be the same, but no longer are
@mcabbott
Copy link
Member

Similar changes in FluxML/NNlib.jl#618 used Core.Compiler.return_type instead of Base._return_type. Do you know which is better?

@serenity4
Copy link
Contributor Author

I think they are equivalent (at least they are in 1.11 and nightly), we can go with Core.Compiler.return_type as it reads slightly more stable without an underscore.

@serenity4
Copy link
Contributor Author

I believe test failures are unrelated, if happy with the change feel free to merge, and it'd be fantastic if a new version could be tagged as well.

@mcabbott mcabbott merged commit 150c7a1 into JuliaDiff:main Feb 25, 2025
5 of 9 checks passed
@mcabbott
Copy link
Member

Thanks! Will tag it now.

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.

2 participants