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

add jl_expand_in_world #37902

Merged
merged 3 commits into from
Oct 8, 2020
Merged

Conversation

simeonschaub
Copy link
Member

This allows specifying a particular worldage for macro expansion. Needed for fixing timholy/Revise.jl#552.
cc @timholy, @c42f

@vtjnash vtjnash added breaking This change will break code triage This should be discussed on a triage call labels Oct 6, 2020
src/ast.c Outdated Show resolved Hide resolved
src/ast.c Outdated Show resolved Hide resolved
src/ast.c Outdated Show resolved Hide resolved
src/ast.c Outdated Show resolved Hide resolved
@vtjnash vtjnash removed breaking This change will break code triage This should be discussed on a triage call labels Oct 6, 2020
Copy link
Member

@c42f c42f left a comment

Choose a reason for hiding this comment

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

This seems pretty straightforward, I think it's fine to merge 👍

I kinda wish we could piggyback this off invoke_in_world somehow, but it's not clear to me how this would work: Normally it's important that eval() and expansion just default to the latest world, rather than following the dynamically scoped world age of the function call tree.

@c42f
Copy link
Member

c42f commented Oct 7, 2020

Unless there's any objections, I'll merge this tomorrow (ping me if I forget).

test/meta.jl Outdated Show resolved Hide resolved
Co-authored-by: Jeff Bezanson <[email protected]>
@simeonschaub
Copy link
Member Author

The bad test looks fixed now, is this good to get merged?

@c42f
Copy link
Member

c42f commented Oct 8, 2020

The freebsd test failure is a timeout. Looks like other unrelated builds are suffering from that too.

@c42f c42f merged commit 9c62c32 into JuliaLang:master Oct 8, 2020
@simeonschaub simeonschaub deleted the jl_expand_in_world branch October 9, 2020 00:01
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.

4 participants