From eb7da436f60322d1a07ba42af45d0689e10dbfe6 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Wed, 13 Aug 2025 17:33:21 -0400 Subject: [PATCH] Fix loading on nightly Ref JuliaLang/julia#59158 --- src/rules/jitrules.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/jitrules.jl b/src/rules/jitrules.jl index 778a3b1f3c..facdef019e 100644 --- a/src/rules/jitrules.jl +++ b/src/rules/jitrules.jl @@ -1770,7 +1770,7 @@ end end # Create specializations -if !isdefined(Core, :GlobalMethods) # pre https://github.com/JuliaLang/julia/pull/58131 +if !(isdefined(Core, :GlobalMethods) || isdefined(Core, :methodtable)) # pre https://github.com/JuliaLang/julia/pull/58131 set_fn_max_args(f) = setfield!(typeof(f).name.mt, :max_args, fieldtype(Core.MethodTable, :max_args)(512), :monotonic) else set_fn_max_args(f) = setfield!(typeof(f).name, :max_args, fieldtype(Core.TypeName, :max_args)(512), :monotonic)