diff --git a/README.md b/README.md index 0dad3378e..8c71fce59 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 c53b4ba65..2441619d5 100644 --- a/test/old.jl +++ b/test/old.jl @@ -1078,3 +1078,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 4fe0e0093..9ade02a7e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -87,10 +87,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}