Skip to content

Commit ae2243d

Browse files
committed
Drop compat code for isbitstype from #560
1 parent 9828871 commit ae2243d

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Currently, the `@compat` macro supports the following syntaxes:
7474

7575
* Single-argument `permutedims(x)` for matrices and vectors ([#24839]).
7676

77-
* `isbits(t::Type)` is now `isbitstype(t)` ([#26850]).
78-
7977
* `something` to get the first argument different from `nothing`, unwrapping those
8078
of the `Some` type ([#27258]).
8179

src/Compat.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ end
7878
end
7979
end
8080

81-
# https://github.com/JuliaLang/julia/pull/26850
82-
if !isdefined(Base, :isbitstype) # 0.7.0-DEV.4905
83-
export isbitstype
84-
isbitstype(::Type{T}) where {T} = isbits(T)
85-
end
86-
8781
# 0.7.0-DEV.4762
8882
@static if !isdefined(Base, Symbol("@cfunction"))
8983
macro cfunction(f, rt, tup)

test/old.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,3 +1075,7 @@ end
10751075
@test isletter('a')
10761076
@test isletter('β')
10771077
@test !isletter('3')
1078+
1079+
# 0.7.0-DEV.4905
1080+
@test isbitstype(Int)
1081+
@test !isbitstype(Vector{Int})

test/runtests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ end
9494
@test length(Compat.CartesianIndices((1:2,))) == 2
9595
@test length(Compat.CartesianIndices((1:2, -1:1))) == 6
9696

97-
# 0.7.0-DEV.4905
98-
@test isbitstype(Int)
99-
@test !isbitstype(Vector{Int})
100-
10197
# 0.7.0-DEV.4762
10298
let ptr = @cfunction(+, Int, (Int, Int))
10399
@test ptr isa Ptr{Cvoid}

0 commit comments

Comments
 (0)