From 4d9c46db6ddf2ad41f3a76b4acbe3713cfe9d22a Mon Sep 17 00:00:00 2001 From: preciz Date: Fri, 25 Sep 2026 08:35:04 +0200 Subject: [PATCH] Match compiler waiting entries directly Match the waiting list directly instead of popping its first element through a generic helper. Preserve profile output while eliminating nonempty pop-result tuples. Assisted-by: Codex:GPT-6 --- lib/elixir/lib/kernel/parallel_compiler.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/elixir/lib/kernel/parallel_compiler.ex b/lib/elixir/lib/kernel/parallel_compiler.ex index b7c6eec1705..627426f8b2d 100644 --- a/lib/elixir/lib/kernel/parallel_compiler.ex +++ b/lib/elixir/lib/kernel/parallel_compiler.ex @@ -1023,11 +1023,11 @@ defmodule Kernel.ParallelCompiler do relative = Path.relative_to_cwd(data.file) messages = - case List.pop_at(data.waiting, 0) do - {nil, []} -> + case data.waiting do + [] -> "[profile] #{compiling}ms compiling + 0ms waiting while compiling #{relative}" - {{kind, on, time}, rest} -> + [{kind, on, time} | rest] -> initial_message = [ "[profile] #{compiling}ms compiling + ", format_waiting_message(time, kind, on, relative)