git: 34f451ea156e - main - ports-mgmt/sccache-overlay: Fix build with rust 1.91.0

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Tue, 11 Nov 2025 11:08:36 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=34f451ea156ef52e2f3d859d9d3d40586b93125c

commit 34f451ea156ef52e2f3d859d9d3d40586b93125c
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2025-11-09 16:47:37 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-11-11 11:08:12 +0000

    ports-mgmt/sccache-overlay: Fix build with rust 1.91.0
    
    error: trailing semicolon in macro used in expression position
       --> src/compiler/compiler.rs:702:58
    
    error: trailing semicolon in macro used in expression position
       --> src/compiler/compiler.rs:705:71
    
    PR:             290816
---
 ports-mgmt/sccache-overlay/files/patch-rust-1.91.0 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/ports-mgmt/sccache-overlay/files/patch-rust-1.91.0 b/ports-mgmt/sccache-overlay/files/patch-rust-1.91.0
new file mode 100644
index 000000000000..f2d3d3bba2bb
--- /dev/null
+++ b/ports-mgmt/sccache-overlay/files/patch-rust-1.91.0
@@ -0,0 +1,15 @@
+--- src/compiler/compiler.rs.orig	2025-11-09 17:42:58 UTC
++++ src/compiler/compiler.rs
+@@ -699,10 +699,10 @@ macro_rules! cannot_cache {
+ 
+ macro_rules! cannot_cache {
+     ($why:expr) => {
+-        return CompilerArguments::CannotCache($why, None);
++        return CompilerArguments::CannotCache($why, None)
+     };
+     ($why:expr, $extra_info:expr) => {
+-        return CompilerArguments::CannotCache($why, Some($extra_info));
++        return CompilerArguments::CannotCache($why, Some($extra_info))
+     };
+ }
+