From 3eae42d60236480eed03f0ad76fd388331bb07ce Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Fri, 1 May 2026 21:06:42 +0200 Subject: [PATCH] Fix Kernel.ParallelCompiler.compile_opts each_cycle spec The callback invocation and default are both 0-arity --- lib/elixir/lib/kernel/parallel_compiler.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/elixir/lib/kernel/parallel_compiler.ex b/lib/elixir/lib/kernel/parallel_compiler.ex index db9ca328aa3..a26b8389944 100644 --- a/lib/elixir/lib/kernel/parallel_compiler.ex +++ b/lib/elixir/lib/kernel/parallel_compiler.ex @@ -25,9 +25,8 @@ defmodule Kernel.ParallelCompiler do each_long_compilation: (Path.t() -> term()) | (Path.t(), pid() -> term()), each_long_verification: (module() -> term()) | (module(), pid() -> term()), each_module: (Path.t(), module(), binary() -> term()), - each_cycle: ([module()], [Code.diagnostic(:warning)] -> - {:compile, [module()], [Code.diagnostic(:warning)]} - | {:runtime, [module()], [Code.diagnostic(:warning)]}), + each_cycle: (-> {:compile, [module()], [Code.diagnostic(:warning)]} + | {:runtime, [module()], [Code.diagnostic(:warning)]}), long_compilation_threshold: pos_integer(), long_verification_threshold: pos_integer(), verification: boolean(),