-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Inference-related internal method error during testing of StructWalk.jl #52613
Labels
Milestone
Comments
maleadt
added
regression
Regression in behavior compared to a previous version
compiler:inference
Type inference
labels
Dec 22, 2023
Something is leaking Vararg, but |
MWE: function getfields(obj::T) where T
fnames = fieldnames(T)
getfield.(Ref(obj), fnames)
end
function walk(f, WALKSTYLE, inner_walk, x)
T, fields = typeof(x), getfields(x)
map(inner_walk, fields)
T(v...)
end
mapleaves(_, x) = walk(f, style, x -> mapleaves(fstyle, x), x)
mapleaves() = mapleaves(f, Ref)
mapleaves()
|
Aka: julia> code_typed((Any,)) do x; TypeVar(x...); end
ERROR: MethodError: no method matching ⊑(::Core.Compiler.JLTypeLattice, ::Core.TypeofVararg, ::Type{Symbol}) |
Keno
added a commit
that referenced
this issue
Jan 3, 2024
Fix #52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
aviatesk
pushed a commit
that referenced
this issue
Jan 4, 2024
Fix #52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
aviatesk
pushed a commit
that referenced
this issue
Jan 4, 2024
Fix #52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
aviatesk
pushed a commit
that referenced
this issue
Jan 5, 2024
Fix #52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
KristofferC
pushed a commit
that referenced
this issue
Jan 5, 2024
Fix #52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
aviatesk
pushed a commit
that referenced
this issue
Jan 6, 2024
Fix #52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
Drvi
pushed a commit
to RelationalAI/julia
that referenced
this issue
Jun 7, 2024
Fix JuliaLang#52613 by making the TypeVar special case in inference check for vararg first. There's nothing the special case can really do with vararg anyway, so fall back to the ordinary abstract call handling.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bisected to #50927; cc @vtjnash
As seen on PkgEval, during testing of StructWalk.jl:
The text was updated successfully, but these errors were encountered: