From d4b1e5ea31630846c9b949ea16c4a0794653dbe5 Mon Sep 17 00:00:00 2001 From: Cody Tapscott Date: Tue, 7 Nov 2023 06:47:41 -0500 Subject: [PATCH] Adjust to julialang/julia#50943 TypedSlot no longer exists upstream, so we need to use a dummy type instead on the latest (master) builds of Julia. --- src/Libtask.jl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Libtask.jl b/src/Libtask.jl index 6f6985c7..ac349a80 100644 --- a/src/Libtask.jl +++ b/src/Libtask.jl @@ -8,10 +8,15 @@ export TapedTask, consume, produce export TArray, tzeros, tfill, TRef # legacy types back compat -const TypedSlot = @static if isdefined(Core, :TypedSlot) # Julia v1.10 removed Core.TypedSlot - Core.TypedSlot +@static if isdefined(Core, :TypedSlot) || isdefined(Core.Compiler, :TypedSlot) + # Julia v1.10 removed Core.TypedSlot + const TypedSlot = @static if isdefined(Core, :TypedSlot) + Core.TypedSlot + else + Core.Compiler.TypedSlot + end else - Core.Compiler.TypedSlot + struct TypedSlot end # Dummy end include("tapedfunction.jl")