-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[JuliaLowering] Restrict K"VERSION" to module arg
#60255
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
base: master
Are you sure you want to change the base?
Conversation
Fixes stdlib precompilation after JuliaLang#60018: the `v_str` macro produces a `VersionNumber`, which becomes `K"VERSION"`, which is unhandled syntax. I think the intent was to only give it special treatment as the child of a module expression (not make VersionNumber special syntax).
|
Yes, I did not intend a generic VersionNumber <-> K"VERSION" embedding. However, I don't think this PR works as is. First there are two places, this shows up, one is in the module, the other is in |
|
Instead of introducing |
|
That sounds reasonable, but I don't know JuliaLowering well enough to really think it through. |
|
I'll give it a shot. What is the reason for having the |
|
There's no place for the parser to store a |
|
Using K"Value" in module would be simpler, but would require differences between SyntaxNode and SyntaxTree (I do want this, but that starts with #60162). The macrocall should work now, though I'm not sure how to reason about it. |
Fixes stdlib precompilation after #60018: the
v_strmacro produces aVersionNumber, which becomesK"VERSION", which is unhandled syntax. Ithink the intent was to only give it special treatment as the child of a
module expression (not make VersionNumber special syntax).