Skip to content

Commit a0553a9

Browse files
timholyaviatesk
andauthored
Fix more specialize locations
Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com>
1 parent 1bb1f1b commit a0553a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@ union!(v::AbstractVector{T}, itrs...) where {T} =
27562756
symdiff!(v::AbstractVector{T}, itrs...) where {T} =
27572757
_grow!(_shrink_filter!(symdiff!(Set{T}(), v, itrs...)), v, itrs)
27582758

2759-
function _shrink!(shrinker!::F, v::AbstractVector, itrs) where F
2759+
function _shrink!(@specialize(shrinker!), v::AbstractVector, itrs)
27602760
seen = Set{eltype(v)}()
27612761
filter!(_grow_filter!(seen), v)
27622762
shrinker!(seen, itrs...)
@@ -2768,7 +2768,7 @@ setdiff!( v::AbstractVector, itrs...) = _shrink!(setdiff!, v, itrs)
27682768

27692769
vectorfilter(T::Type, f, v) = T[x for x in v if f(x)]
27702770

2771-
function _shrink(shrinker!::F, itr, itrs) where F
2771+
function _shrink(@specialize(shrinker!), itr, itrs)
27722772
T = promote_eltype(itr, itrs...)
27732773
keep = shrinker!(Set{T}(itr), itrs...)
27742774
vectorfilter(T, _shrink_filter!(keep), itr)

0 commit comments

Comments
 (0)