Skip to content

Commit 5fe53f7

Browse files
committed
Hard-deprecate the Set module (#5513)
It will be removed in Elixir 2.0.
1 parent 276b0d3 commit 5fe53f7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/elixir/lib/set.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ defmodule Set do
99
@type values :: [ value ]
1010
@type t :: map
1111

12-
# TODO: Deprecate every function by 1.4
12+
# TODO: Remove by 2.0
13+
# (hard-deprecated in elixir_dispatch)
14+
1315
defmacrop target(set) do
1416
quote do
1517
case unquote(set) do

lib/elixir/src/elixir_dispatch.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,5 +353,8 @@ deprecation('Elixir.HashSet', _, _) ->
353353
"use the MapSet module instead";
354354
deprecation('Elixir.Dict', _, _) ->
355355
"use the Map module for working with maps or the Keyword module for working with keyword lists";
356+
deprecation('Elixir.Set', _, _) ->
357+
"use the MapSet module for working with sets";
358+
356359
deprecation(_, _, _) ->
357360
false.

0 commit comments

Comments
 (0)