From 9bd1d7f76017e8fb3e65163dd33264e2e72fc94a Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Fri, 28 May 2021 22:27:23 +0200 Subject: [PATCH] fix `redirect_stdio` rules on nightly again These were broken by JuliaLang/julia#37978 again. --- src/rulesets/Base/nondiff.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rulesets/Base/nondiff.jl b/src/rulesets/Base/nondiff.jl index 23829da7a..4761d1428 100644 --- a/src/rulesets/Base/nondiff.jl +++ b/src/rulesets/Base/nondiff.jl @@ -316,9 +316,7 @@ VERSION >= v"1.4" && @non_differentiable only(::Char) @non_differentiable readuntil(::IO, ::AbstractString) @non_differentiable realpath(::AbstractString) if isdefined(Base, :redirect_stdio) - @non_differentiable (::Base.redirect_stdio)( - ::Union{IOStream, Base.LibuvStream, Base.DevNull, Base.AbstractPipe}, - ) + @non_differentiable Base.redirect_stdio(::Any) else @non_differentiable redirect_stderr( ::Union{IOStream, Base.LibuvStream, Base.DevNull, IOContext},