From a5351308dd33220e8c8b0dccad47b960bc198290 Mon Sep 17 00:00:00 2001 From: Cody Tapscott <84105208+topolarity@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:04:10 -0500 Subject: [PATCH] Adjust to julialang/julia#50943 (#169) 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 6f6985c..ac349a8 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")