diff --git a/Project.toml b/Project.toml index 2c576343a..870fb4fe5 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Compat" uuid = "34da2185-b29b-5c13-b0c7-acf172513d20" -version = "3.46.0" +version = "3.46.1" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/src/Compat.jl b/src/Compat.jl index 6ab793ac7..882429626 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -104,7 +104,7 @@ if VERSION < v"1.1.0-DEV.506" end # https://github.com/JuliaLang/julia/pull/30496 -if VERSION < v"1.2.0-DEV.272" +@static if VERSION < v"1.2.0-DEV.272" Base.@pure hasfield(::Type{T}, name::Symbol) where T = Base.fieldindex(T, name, false) > 0 export hasfield @@ -277,7 +277,7 @@ if VERSION < v"1.4.0-DEV.551" end # https://github.com/JuliaLang/julia/pull/34652 -if VERSION < v"1.5.0-DEV.247" +@static if VERSION < v"1.5.0-DEV.247" export ismutable ismutable(@nospecialize(x)) = (Base.@_pure_meta; typeof(x).mutable) end