Skip to content

Commit b00ed77

Browse files
committed
Adjust to base generated functions change
1 parent 0d8a602 commit b00ed77

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

src/stage1/generated.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,8 @@ function reload()
411411
Expr(:new,
412412
Core.GeneratedFunctionStub,
413413
:perform_optic_transform,
414-
Any[:ff, :args],
415-
Any[],
416-
@__LINE__,
417-
QuoteNode(Symbol(@__FILE__)),
418-
true)))
414+
Core.svec(:ff, :args),
415+
Core.svec())))
419416
end
420417
end)
421418
end

src/stage1/recurse_fwd.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ end
6969
Expr(:new,
7070
Core.GeneratedFunctionStub,
7171
:perform_fwd_transform,
72-
Any[:ff, :args],
73-
Any[],
74-
@__LINE__,
75-
QuoteNode(Symbol(@__FILE__)),
76-
true)))
72+
Core.svec(:ff, :args),
73+
Core.svec())))
7774
end

src/stage1/termination.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ which(Tuple{∂⃖{N}, ∂⃖{1}, Vararg{Any}} where {N}).recursion_relation = f
4444
isa(Base.unwrap_unionall(new_sig.parameters[1].parameters[1]), Int)
4545
end
4646

47-
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆recurse{N}, Vararg{Any}} where {N}, nothing, -1, typemax(UInt64))
47+
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆recurse{N}, Vararg{Any}} where {N}, nothing, -1, Base.get_world_counter())
4848
method.recursion_relation = function (method1, method2, parent_sig, new_sig)
4949
# Recursion from a higher to a lower order is always allowed
5050
parent_order = parent_sig.parameters[1].parameters[1]
@@ -58,13 +58,13 @@ for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆recurse{N}, Varar
5858
end
5959
end
6060

61-
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆internal{N}, Vararg{Any}} where {N}, nothing, -1, typemax(UInt64))
61+
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆internal{N}, Vararg{Any}} where {N}, nothing, -1, Base.get_world_counter())
6262
method.recursion_relation = function (method1, method2, parent_sig, new_sig)
6363
return true
6464
end
6565
end
6666

67-
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆{N}, Vararg{Any}} where {N}, nothing, -1, typemax(UInt64))
67+
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆{N}, Vararg{Any}} where {N}, nothing, -1, Base.get_world_counter())
6868
method.recursion_relation = function (method1, method2, parent_sig, new_sig)
6969
return true
7070
end

0 commit comments

Comments
 (0)