Skip to content

Commit 3f08379

Browse files
authored
Do not trace protocol impl checks
A more complete solution is found in master but this approach is less disruptive in the v1.11 branch.
1 parent 1bbc959 commit 3f08379

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/mix/lib/mix/compilers/application_tracer.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ defmodule Mix.Compilers.ApplicationTracer do
2525
:ok
2626
end
2727

28+
# Also skip __impl__ calls inside protocols as they are meant
29+
# to invert dependencies.
30+
def trace({_, _, _, :__impl__, _}, _env) do
31+
:ok
32+
end
33+
2834
def trace({type, meta, module, function, arity}, env)
2935
when type in [:remote_function, :remote_macro, :imported_function, :imported_macro] do
3036
# Unknown modules need to be looked up and filtered later

0 commit comments

Comments
 (0)