commit: fa7c2545c4e1faaa722a951cd7ab5a41d3bf8a41 Author: Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org> AuthorDate: Thu Dec 25 09:51:29 2025 +0000 Commit: Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org> CommitDate: Thu Dec 25 09:51:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa7c2545
dev-lang/gleam: remove unused patch(es) Signed-off-by: Michael Mair-Keimberger <mm1ke <AT> gentoo.org> .../gleam/files/gleam-1.4.0-rust178-compat.patch | 28 ---------------------- 1 file changed, 28 deletions(-) diff --git a/dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch b/dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch deleted file mode 100644 index 3e3ab1dc1937..000000000000 --- a/dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch +++ /dev/null @@ -1,28 +0,0 @@ -From b2301ad49894fa7a6edc89a3b2128be274bd2996 Mon Sep 17 00:00:00 2001 -From: Philipp Herzog <[email protected]> -Date: Sat, 3 Aug 2024 11:10:37 +0200 -Subject: [PATCH] Store formatted variables in a variable - -This fixes compilation errors when compiling with slightly less recent -rust compilers, e.g. 1.78.0 and 1.77.1. - -The performance overhead of formatting the string here is neglegible in -any case since the string is only discarded if there are zero or one -variables, in which case the extra call to `join` is very cheap. - -Upstream: https://github.com/gleam-lang/gleam/pull/3484 ---- a/compiler-core/src/language_server/code_action.rs -+++ b/compiler-core/src/language_server/code_action.rs -@@ -344,10 +344,11 @@ impl<'ast> ast::visit::Visit<'ast> for LetAssertToCase<'_> { - self.visit_typed_pattern(&assignment.pattern); - let variables = std::mem::take(&mut self.pattern_variables); - -+ let formatted_all = format!("#({})", variables.join(", ")); - let assigned = match variables.len() { - 0 => "_", - 1 => variables.first().expect("Variables is length one"), -- _ => &format!("#({})", variables.join(", ")), -+ _ => &formatted_all, - }; - - let edit = TextEdit {
