Skip to content

Commit 8f64ca0

Browse files
committed
Use Macro.Env in more warnings
1 parent fcacbfa commit 8f64ca0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: lib/elixir/lib/kernel.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -3622,7 +3622,7 @@ defmodule Kernel do
36223622
defp do_at([], meta, name, function?, env) do
36233623
IO.warn(
36243624
"the @#{name}() notation (with parentheses) is deprecated, please use @#{name} (without parentheses) instead",
3625-
Macro.Env.stacktrace(env)
3625+
env
36263626
)
36273627

36283628
do_at(nil, meta, name, function?, env)

Diff for: lib/elixir/lib/kernel/utils.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ defmodule Kernel.Utils do
3636
if is_list(funs) do
3737
IO.warn(
3838
"passing a list to Kernel.defdelegate/2 is deprecated, please define each delegate separately",
39-
Macro.Env.stacktrace(env)
39+
env
4040
)
4141
end
4242

4343
if Keyword.has_key?(opts, :append_first) do
4444
IO.warn(
4545
"Kernel.defdelegate/2 :append_first option is deprecated",
46-
Macro.Env.stacktrace(env)
46+
env
4747
)
4848
end
4949

0 commit comments

Comments
 (0)