git: c4e118b293f6 - main - misc/xd-rust: Fix build with rust 1.89.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Sep 2025 08:26:03 UTC
The branch main has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c4e118b293f62c76dcb50f28425b69ccc4afd14b
commit c4e118b293f62c76dcb50f28425b69ccc4afd14b
Author: Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2025-08-25 11:56:02 +0000
Commit: Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-09-01 08:24:04 +0000
misc/xd-rust: Fix build with rust 1.89.0
error: implicit autoref creates a reference to the dereference of a raw pointer
--> src/bin/xd/cli.rs:107:17
PR: 288923
Approved by: portmgr (build fix blanket)
---
misc/xd-rust/files/patch-rust-1.89.0 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/misc/xd-rust/files/patch-rust-1.89.0 b/misc/xd-rust/files/patch-rust-1.89.0
new file mode 100644
index 000000000000..e6428dda91df
--- /dev/null
+++ b/misc/xd-rust/files/patch-rust-1.89.0
@@ -0,0 +1,10 @@
+--- src/bin/xd/cli.rs.orig 2025-08-23 07:56:06 UTC
++++ src/bin/xd/cli.rs
+@@ -100,6 +100,7 @@ impl From<TableOption> for &xd::table::Table {
+ }
+ }
+
++#[warn(dangerous_implicit_autorefs)]
+ #[rustfmt::skip]
+ pub fn app() -> App<'static, 'static> {
+ App::new("xd")