diff --git a/README.md b/README.md index 44ac09a39..f11ac8ad4 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,6 @@ Currently, the `@compat` macro supports the following syntaxes: * Single-argument `permutedims(x)` for matrices and vectors ([#24839]). -* `isbits(t::Type)` is now `isbitstype(t)` ([#26850]). - * `something` to get the first argument different from `nothing`, unwrapping those of the `Some` type ([#27258]). diff --git a/src/Compat.jl b/src/Compat.jl index 6a0c605eb..ca9502732 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -78,12 +78,6 @@ end end end -# https://github.com/JuliaLang/julia/pull/26850 -if !isdefined(Base, :isbitstype) # 0.7.0-DEV.4905 - export isbitstype - isbitstype(::Type{T}) where {T} = isbits(T) -end - # 0.7.0-DEV.4762 @static if !isdefined(Base, Symbol("@cfunction")) macro cfunction(f, rt, tup) diff --git a/test/old.jl b/test/old.jl index 211b35d12..870746898 100644 --- a/test/old.jl +++ b/test/old.jl @@ -1075,3 +1075,7 @@ end @test isletter('a') @test isletter('β') @test !isletter('3') + +# 0.7.0-DEV.4905 +@test isbitstype(Int) +@test !isbitstype(Vector{Int}) diff --git a/test/runtests.jl b/test/runtests.jl index f4c528f0c..d6207e928 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -94,10 +94,6 @@ end @test length(Compat.CartesianIndices((1:2,))) == 2 @test length(Compat.CartesianIndices((1:2, -1:1))) == 6 -# 0.7.0-DEV.4905 -@test isbitstype(Int) -@test !isbitstype(Vector{Int}) - # 0.7.0-DEV.4762 let ptr = @cfunction(+, Int, (Int, Int)) @test ptr isa Ptr{Cvoid}