Skip to content

Commit ad262dc

Browse files
authored
Fix Kernel.ParallelCompiler.compile_opts each_cycle spec (#15333)
The callback invocation and default are both 0-arity.
1 parent a0e1604 commit ad262dc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/elixir/lib/kernel/parallel_compiler.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ defmodule Kernel.ParallelCompiler do
2525
each_long_compilation: (Path.t() -> term()) | (Path.t(), pid() -> term()),
2626
each_long_verification: (module() -> term()) | (module(), pid() -> term()),
2727
each_module: (Path.t(), module(), binary() -> term()),
28-
each_cycle: ([module()], [Code.diagnostic(:warning)] ->
29-
{:compile, [module()], [Code.diagnostic(:warning)]}
30-
| {:runtime, [module()], [Code.diagnostic(:warning)]}),
28+
each_cycle: (-> {:compile, [module()], [Code.diagnostic(:warning)]}
29+
| {:runtime, [module()], [Code.diagnostic(:warning)]}),
3130
long_compilation_threshold: pos_integer(),
3231
long_verification_threshold: pos_integer(),
3332
verification: boolean(),

0 commit comments

Comments
 (0)