From 16d272776447cfcdb73bd3d790e44c8beffef6e3 Mon Sep 17 00:00:00 2001 From: Cody Tapscott Date: Mon, 23 Oct 2023 13:18:51 -0400 Subject: [PATCH] Fix test failure on master due to try-catch elision Inference got better, so we need to frustrate it artificially now. --- test/runtests.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/runtests.jl b/test/runtests.jl index 883a408..9bf383a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,6 +3,7 @@ using Test function alloc_in_catch() try + Base.inferencebarrier(nothing) # Prevent catch from being elided catch return Any[] # in catch block: filtered by `ignore_throw=true` end