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 anonymous functions in Julia 1.6 #94

Merged
merged 2 commits into from
Apr 2, 2021

Conversation

darsnack
Copy link
Contributor

@darsnack darsnack commented Apr 2, 2021

This fixes #80 by updating Method to reflect changes to the structure in Julia 1.6. There is already a test case where this fails, and the PR addresses that. Under the current test cases, this is the only Julia 1.6 issue that needed to be addressed.


initstruct(::Type{Method}) = ccall(:jl_new_method_uninit, Ref{Method}, (Any,), Main)

function newstruct!(meth::Method, mod, name, file, line, sig,
syms, ambig, nargs, isva, nospecialize, ast)
syms, nargs, isva, nospecialize, ast)
Copy link
Collaborator

Choose a reason for hiding this comment

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

To confirm, has ambig been removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah remove here

@darsnack
Copy link
Contributor Author

darsnack commented Apr 2, 2021

Failing check on nightly was present before this PR, and it is a result of JuliaLang/julia#38136. I'll look into it in another PR. It isn't present on Julia 1.6.

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.

Serializing anonymous method fails on julia 1.6-beta1
3 participants