From ac96b0d751c04545865c64295899b626668e3faa Mon Sep 17 00:00:00 2001 From: GraysonTinker Date: Wed, 17 Jun 2026 15:03:13 -0700 Subject: [PATCH] lib.lists: remove fold --- lib/lists.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/lists.nix b/lib/lists.nix index 9932d410bd98..8d9ec38b9a28 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -143,13 +143,9 @@ rec { fold' 0; /** - `fold` is an alias of `foldr` for historic reasons. - - ::: {.warning} - This function will be removed in 26.05. - ::: + `fold` was an alias of `foldr` for historic reasons. */ - fold = warn "fold has been deprecated, use foldr instead" foldr; + fold = throw "fold is a removed alias of foldr, use it instead"; # TODO: Remove in 26.11 /** “left fold”, like `foldr`, but from the left: