Skip to content

Commit 47af32a

Browse files
authored
Fix loading on nightly (#2509)
Ref JuliaLang/julia#59158
1 parent 26eb047 commit 47af32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/jitrules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ end
17701770
end
17711771

17721772
# Create specializations
1773-
if !isdefined(Core, :GlobalMethods) # pre https://github.com/JuliaLang/julia/pull/58131
1773+
if !(isdefined(Core, :GlobalMethods) || isdefined(Core, :methodtable)) # pre https://github.com/JuliaLang/julia/pull/58131
17741774
set_fn_max_args(f) = setfield!(typeof(f).name.mt, :max_args, fieldtype(Core.MethodTable, :max_args)(512), :monotonic)
17751775
else
17761776
set_fn_max_args(f) = setfield!(typeof(f).name, :max_args, fieldtype(Core.TypeName, :max_args)(512), :monotonic)

0 commit comments

Comments
 (0)