Skip to content

Commit 45f9c9c

Browse files
author
José Valim
committed
Add upcoming attributes to no warn list
1 parent cde12f7 commit 45f9c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/src/elixir_module.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ beam_location(#{lexical_tracker := Pid, module := Module}) ->
318318
%% Handle unused attributes warnings and special cases.
319319

320320
warn_unused_attributes(File, Data, PersistedAttrs) ->
321-
ReservedAttrs = [after_compile, before_compile, moduledoc, on_definition | PersistedAttrs],
321+
ReservedAttrs = [after_compile, before_compile, deprecated, moduledoc, on_definition, since | PersistedAttrs],
322322
Keys = ets:select(Data, [{{'$1', '_', '_', '$2'}, [{is_atom, '$1'}, {is_integer, '$2'}], [['$1', '$2']]}]),
323323
[elixir_errors:form_warn([{line, Line}], File, ?MODULE, {unused_attribute, Key}) ||
324324
[Key, Line] <- Keys, not lists:member(Key, ReservedAttrs)].

0 commit comments

Comments
 (0)