Skip to content

Commit fe3c263

Browse files
author
José Valim
committed
Remove other hard deprecations
1 parent 7558c9a commit fe3c263

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir/lib/code.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ defmodule Code do
11211121
longer available, and therefore this function always returns `nil`.
11221122
Use `Code.fetch_docs/1` instead.
11231123
"""
1124-
@deprecated "Code.get_docs/2 always returns nil as its outdated documentation is no longer stored on BEAM files. Use Code.fetch_docs/1 instead"
1124+
@doc deprecated: "Code.get_docs/2 always returns nil as its outdated documentation is no longer stored on BEAM files. Use Code.fetch_docs/1 instead"
11251125
@spec get_docs(module, :moduledoc | :docs | :callback_docs | :type_docs | :all) :: nil
11261126
def get_docs(_module, _kind) do
11271127
nil

lib/elixir/src/elixir_module.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ warn_unused_attributes(File, DataSet, DataBag, PersistedAttrs) ->
331331
StoredAttrs = bag_lookup_element(DataBag, attributes, 2),
332332
%% This is the same list as in Module.put_attribute
333333
%% without moduledoc which are never warned on.
334-
Attrs = [doc, typedoc, impl, deprecated | StoredAttrs -- PersistedAttrs],
334+
Attrs = [doc, typedoc, impl, deprecated | StoredAttrs -- [since | PersistedAttrs]],
335335
Query = [{{Attr, '_', '$1'}, [{is_integer, '$1'}], [[Attr, '$1']]} || Attr <- Attrs],
336336
[elixir_errors:form_warn([{line, Line}], File, ?MODULE, {unused_attribute, Key})
337337
|| [Key, Line] <- ets:select(DataSet, Query)].

0 commit comments

Comments
 (0)