From nobody Sun Apr 14 20:41:44 2024 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VHhzr3YCWz5H2mc; Sun, 14 Apr 2024 20:41:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VHhzr35yrz4rCw; Sun, 14 Apr 2024 20:41:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713127304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2yxsErANK6+If2xv7smowO9hMICKka9TiuDDtDk8SX4=; b=O0gj/0Z0blyUY21U9+YhQBtDHkwNT7m6ZiVZYM4HHc5Oh7qDE+fwWuQfPMH/T3Pq1sjf6x vpVpA0qm3+xuq5CCWvueoeToqeOdKmJUxbHCcU+hLx2dnBBeWTapGDRvj+APqyK/QVOzcg hWY5W+OJE9x6NeVbtIgR8u0JmAvbnFxusyhpMHjaAJF8Bh8QPJo6yZnH7kbIWw7gUDA+5h iuxJ2F6JSZGsfaXJEFPU8tez8nLiIDME5UgvHGcPskjzts9hRDrvtJj8WiERq5yDKdzr5Q 1y27pOThGW9Xw6T0gOVf6s9hl2QQ1jhM/lC9Ka6iA5QQpcQF+LLaRX3ohticVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713127304; a=rsa-sha256; cv=none; b=viENAODsccncCk/hfs+mKUf8qj8G6rrZuNi5+FUt0FOeOl8ndTV5l3gciwofEZDcNp2KQj onIYKc91eppBdwMXpDyz1oJ1ZGL0Tg9aICEHmYSxXxFL8NcdyEZH8FVTIZPaZHtQhOllV8 ZPBOF0eHBDUSY0qwP3Oh/Xgjp4CvjyBrjoupLDalP9lmMQNZ7/XsDtW6SPmoz7vOruHgz0 AzTeFVmi1ZD4ePmVRUuFS/w7A/cw/Ozl8p+tAj7NU0XRf/6x79wS4+wHEOKq2Bm+tk+RjW 92Y/IG7oiCWtdoQB+db+S6qSBP+TRU/GbtzZV1Uw2XnRY9sdlFkkldnp6s1y8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713127304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2yxsErANK6+If2xv7smowO9hMICKka9TiuDDtDk8SX4=; b=t/Y+2D4TWYdckkiSAZJxLrCAII4iWMzJRXFAloT8TNDGhFOzZ4uozPlImXril1GAlliu0L v/33wUyZ4DoIkUrHFJzmbImYj3q0Ok14lpTYE/dMCS88m3TUZViqZ7UzXGmzl/8p0XDdz+ u49aFL7tY4POjqM/oJw+4Loz7RJCkCG+c1Yw2t2yRmDN1tAAjEvQFqzTmbN9aeEzBORh/+ LwLzJC4fFkptxJTb5caBo9KE7F9o5FELZFn5zyEY9RKQ/MzaZjnP6U/lhr3lWfGjlTZxmt Nl67oOuPNlFTn5oKDYaYRW9ioW22+2/0JlEFsz9JGzGl2waZ2F9e2AFVM7fUCg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VHhzr2jHvzXB2; Sun, 14 Apr 2024 20:41:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43EKfi2a008257; Sun, 14 Apr 2024 20:41:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43EKfiJw008254; Sun, 14 Apr 2024 20:41:44 GMT (envelope-from git) Date: Sun, 14 Apr 2024 20:41:44 GMT Message-Id: <202404142041.43EKfiJw008254@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Christoph Moench-Tegeder Subject: git: 2e5b5842367e - 2024Q2 - mail/thunderbird: fix rust warnings "variable does not need to be mutable" List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cmt X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q2 X-Git-Reftype: branch X-Git-Commit: 2e5b5842367e3d2802c6dae693563c89063e0257 Auto-Submitted: auto-generated The branch 2024Q2 has been updated by cmt: URL: https://cgit.FreeBSD.org/ports/commit/?id=2e5b5842367e3d2802c6dae693563c89063e0257 commit 2e5b5842367e3d2802c6dae693563c89063e0257 Author: Christoph Moench-Tegeder AuthorDate: 2024-04-14 20:37:17 +0000 Commit: Christoph Moench-Tegeder CommitDate: 2024-04-14 20:41:21 +0000 mail/thunderbird: fix rust warnings "variable does not need to be mutable" These led to build failures with some toolchains. https://bugzilla.mozilla.org/show_bug.cgi?id=1841919 Reported by: cy (cherry picked from commit 67cbb7783043e37b73f1a2aae990281305424024) --- mail/thunderbird/files/patch-bug1841919 | 75 +++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/mail/thunderbird/files/patch-bug1841919 b/mail/thunderbird/files/patch-bug1841919 new file mode 100644 index 000000000000..93bd00f462ae --- /dev/null +++ b/mail/thunderbird/files/patch-bug1841919 @@ -0,0 +1,75 @@ +commit 54ebf78999815570c3cd4d94bf00daa7dec6061d +Author: Mike Hommey +Date: Thu Jul 6 02:34:07 2023 +0000 + + Bug 1841919 - Fix "variable does not need to be mutable" warnings in webrender. r=gfx-reviewers,lsalzman + + Differential Revision: https://phabricator.services.mozilla.com/D182851 + +diff --git gfx/wr/webrender/src/compositor/sw_compositor.rs gfx/wr/webrender/src/compositor/sw_compositor.rs +index e623870c86f3..854fef6fe2b9 100644 +--- gfx/wr/webrender/src/compositor/sw_compositor.rs ++++ gfx/wr/webrender/src/compositor/sw_compositor.rs +@@ -1026,7 +1026,7 @@ impl SwCompositor { + if let Some(surface) = self.surfaces.get_mut(id) { + if let Some(external_image) = surface.external_image { + assert!(!surface.tiles.is_empty()); +- let mut tile = &mut surface.tiles[0]; ++ let tile = &mut surface.tiles[0]; + if let Some(info) = self.composite_surfaces.get(&external_image) { + tile.valid_rect = DeviceIntRect::from_size(info.size); + return; +diff --git gfx/wr/webrender/src/picture.rs gfx/wr/webrender/src/picture.rs +index bd685d48a113..72c0e1efa038 100644 +--- gfx/wr/webrender/src/picture.rs ++++ gfx/wr/webrender/src/picture.rs +@@ -2888,7 +2888,7 @@ impl TileCacheInstance { + let prim_clip_chain = &prim_instance.vis.clip_chain; + + // Accumulate the exact (clipped) local rect in to the parent surface +- let mut surface = &mut surfaces[prim_surface_index.0]; ++ let surface = &mut surfaces[prim_surface_index.0]; + surface.clipped_local_rect = surface.clipped_local_rect.union(&prim_clip_chain.pic_coverage_rect); + + // If the primitive is directly drawn onto this picture cache surface, then +diff --git gfx/wr/webrender_api/src/display_item_cache.rs gfx/wr/webrender_api/src/display_item_cache.rs +index 6cd1eb3e3a44..60d41c591d36 100644 +--- gfx/wr/webrender_api/src/display_item_cache.rs ++++ gfx/wr/webrender_api/src/display_item_cache.rs +@@ -58,13 +58,13 @@ pub struct DisplayItemCache { + + impl DisplayItemCache { + fn add_item(&mut self, key: ItemKey, item: CachedDisplayItem) { +- let mut entry = &mut self.entries[key as usize]; ++ let entry = &mut self.entries[key as usize]; + entry.items.push(item); + entry.occupied = true; + } + + fn clear_entry(&mut self, key: ItemKey) { +- let mut entry = &mut self.entries[key as usize]; ++ let entry = &mut self.entries[key as usize]; + entry.items.clear(); + entry.occupied = false; + } +commit 8300555a01bdcc478ae103dcf2b469bf24e4dd41 +Author: Mike Hommey +Date: Thu Jul 6 04:26:41 2023 +0000 + + Bug 1841919 - Fix "variable does not need to be mutable" warning in wrench. r=gfx-reviewers,jrmuizel + + Differential Revision: https://phabricator.services.mozilla.com/D182858 + +diff --git gfx/wr/wrench/src/reftest.rs gfx/wr/wrench/src/reftest.rs +index 136a4477205d..0e900224b883 100644 +--- gfx/wr/wrench/src/reftest.rs ++++ gfx/wr/wrench/src/reftest.rs +@@ -514,7 +514,7 @@ impl ReftestManifest { + max_difference: options.allow_max_difference, + num_differences: options.allow_num_differences }), + 1 => { +- let mut fuzzy = &mut fuzziness[0]; ++ let fuzzy = &mut fuzziness[0]; + fuzzy.max_difference = cmp::max(fuzzy.max_difference, options.allow_max_difference); + fuzzy.num_differences = cmp::max(fuzzy.num_differences, options.allow_num_differences); + },