Skip to content

Commit 856abb5

Browse files
committed
Fix deprecation of DisjointSets(xs...) to avoid warning on package load
1 parent b7c5a51 commit 856abb5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/deprecations.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
# Deprecations from #700
77
Base.@deprecate_binding DisjointSets DisjointSet
88
Base.@deprecate_binding IntDisjointSets IntDisjointSet
9-
@deprecate DisjointSets(xs...) DisjointSet(xs)
9+
# We won't want to make this `@deprecate DisjointSets(xs...) DisjointSet(xs)`
10+
# because then loading this package will trigger a deprecation warning when we
11+
# evaluate the deprrecated DisjointSets binding. This breaks any package that
12+
# tries to load DataStructures with --depwarn=error
13+
@deprecate DisjointSet(xs...) DisjointSet(xs)
1014
# Enqueue and dequeue deprecations
1115
@deprecate enqueue!(q::Queue, x) Base.push!(q, x)
1216
@deprecate enqueue!(q::PriorityQueue, x) Base.push!(q, x)

0 commit comments

Comments
 (0)