aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-08-22 17:48:57 +0200
committerBjörn-Egil Dahlberg <[email protected]>2017-01-25 11:56:28 +0100
commit4432ac28c118622c2994440b5be3bff0bc77cc83 (patch)
treec822040351ef33a22655afe38966d1a2121d2e61 /lib
parenta198f78edcae91366cbd75df7539116ccb85adec (diff)
downloadotp-4432ac28c118622c2994440b5be3bff0bc77cc83.tar.gz
otp-4432ac28c118622c2994440b5be3bff0bc77cc83.tar.bz2
otp-4432ac28c118622c2994440b5be3bff0bc77cc83.zip
stdlib: Produce correct warning for erlang:hash/2
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/src/otp_internal.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index f4257fb571..5bf77a5160 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -47,9 +47,6 @@ obsolete(Module, Name, Arity) ->
obsolete_1(net, _, _) ->
{deprecated, "module 'net' obsolete; use 'net_adm'"};
-obsolete_1(erlang, hash, 2) ->
- {deprecated, {erlang, phash2, 2}};
-
obsolete_1(erlang, now, 0) ->
{deprecated,
"Deprecated BIF. See the \"Time and Time Correction in Erlang\" "
@@ -553,6 +550,13 @@ obsolete_1(overload, _, _) ->
obsolete_1(rpc, safe_multi_server_call, A) when A =:= 2; A =:= 3 ->
{removed, {rpc, multi_server_call, A}};
+%% Removed in OTP 20.
+
+obsolete_1(erlang, hash, 2) ->
+ {removed, {erlang, phash2, 2}, "20.0"};
+
+%% not obsolete
+
obsolete_1(_, _, _) ->
no.