From 14a2a4f3cf5c388cd38ca8d6f12007ef7a011c83 Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Thu, 7 Aug 2025 12:35:32 +0100 Subject: [PATCH 1/3] Use new 1.12 name for global method table --- src/Tricks.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tricks.jl b/src/Tricks.jl index 64ce423..dfea127 100644 --- a/src/Tricks.jl +++ b/src/Tricks.jl @@ -102,7 +102,7 @@ function _method_table_all_edges_all_methods(f, T, world = Base.get_world_counte mt = f.name.mt mt_edges = Core.Compiler.vect(mt, Tuple{f,Vararg{Any}}) else - mt = Core.GlobalMethods + mt = Core.methodtable mt_edges = Core.Compiler.vect(Tuple{f, Vararg{Any}}, mt) end From 51af7af15b96fbd08ce266db221ad5a2472a615e Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Thu, 7 Aug 2025 12:35:41 +0100 Subject: [PATCH 2/3] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index c8ea54e..f6ebc0f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Tricks" uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775" authors = ["Frames White"] -version = "0.1.11" +version = "0.1.12" [compat] julia = "1.0" From 11a9e761cae50b1e0b31a5ef6d408f133cc46f72 Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Fri, 8 Aug 2025 09:52:02 +0100 Subject: [PATCH 3/3] Update src/Tricks.jl --- src/Tricks.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tricks.jl b/src/Tricks.jl index dfea127..c10b5ea 100644 --- a/src/Tricks.jl +++ b/src/Tricks.jl @@ -102,7 +102,7 @@ function _method_table_all_edges_all_methods(f, T, world = Base.get_world_counte mt = f.name.mt mt_edges = Core.Compiler.vect(mt, Tuple{f,Vararg{Any}}) else - mt = Core.methodtable + mt = isdefined(Core, :methodtable) ? Core.methodtable : Core.GlobalMethods # was called this in 1.12 pre 1.12-rc2 mt_edges = Core.Compiler.vect(Tuple{f, Vararg{Any}}, mt) end