Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2025 08:01:23 GMT
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 98c1d857ca1e - main - games/veloren-weekly: Fix build with rust-1.85
Message-ID:  <202502240801.51O81NjX041749@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98c1d857ca1e4c8b3e0eb71d3232a61074d0f463

commit 98c1d857ca1e4c8b3e0eb71d3232a61074d0f463
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2025-02-24 07:50:03 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-02-24 07:55:52 +0000

    games/veloren-weekly: Fix build with rust-1.85
    
    PR:             284884
    Approved by:    portmgr (build fix blanket)
---
 games/veloren-weekly/files/patch-rust-1.84 | 41 ------------------------------
 1 file changed, 41 deletions(-)

diff --git a/games/veloren-weekly/files/patch-rust-1.84 b/games/veloren-weekly/files/patch-rust-1.84
index 6f104fa3bee8..24e2051c51d0 100644
--- a/games/veloren-weekly/files/patch-rust-1.84
+++ b/games/veloren-weekly/files/patch-rust-1.84
@@ -1,24 +1,3 @@
-Partially revert https://gitlab.com/veloren/veloren/-/commit/fae849e95198
-until lang/rust >= 1.85 update per https://github.com/rust-lang/rust/commit/fe521506a61c
-
-error[E0277]: expected a `FnMut(&mut veloren_common::comp::ControlAction)` closure, found `RangeFull`
-    --> common/systems/src/mount.rs:74:49
-     |
-74   | ...                   .extract_if(.., |action| match action {
-     |                        ---------- ^^ expected an `FnMut(&mut veloren_common::comp::ControlAction)` closure, found `RangeFull`
-     |                        |
-     |                        required by a bound introduced by this call
-     |
-     = help: the trait `for<'a> FnMut(&'a mut veloren_common::comp::ControlAction)` is not implemented for `RangeFull`
-note: required by a bound in `Vec::<T, A>::extract_if`
-    --> /usr/local/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:3236:12
-     |
-3234 |     pub fn extract_if<F>(&mut self, filter: F) -> ExtractIf<'_, T, F, A>
-     |            ---------- required by a bound in this associated function
-3235 |     where
-3236 |         F: FnMut(&mut T) -> bool,
-     |            ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Vec::<T, A>::extract_if`
-
 Drop after lang/rust >= 1.86 update per https://github.com/rust-lang/rust/commit/cbd44d799800
 
 error[E0658]: cannot cast `dyn ai::Action<S, R>` to `dyn std::any::Any`, trait upcasting coercion is experimental
@@ -38,26 +17,6 @@ error[E0658]: cannot cast `dyn ai::Action<S, R>` to `dyn std::any::Any`, trait u
     = note: this compiler was built on 2025-01-07; consider upgrading it if it is out of date
     = note: required when coercing `&(dyn ai::Action<S, R> + 'static)` into `&(dyn std::any::Any + 'static)`
 
---- common/systems/src/mount.rs.orig	2025-01-29 18:05:18 UTC
-+++ common/systems/src/mount.rs
-@@ -71,7 +71,7 @@ impl<'a> System<'a> for Sys {
-                             if !matches!(body, Some(Body::Humanoid(_))) {
-                                 let actions = c
-                                     .actions
--                                    .extract_if(.., |action| match action {
-+                                    .extract_if(|action| match action {
-                                         ControlAction::StartInput { input: i, .. }
-                                         | ControlAction::CancelInput(i) => matches!(
-                                             i,
-@@ -180,7 +180,7 @@ impl<'a> System<'a> for Sys {
-             let inputs = controllers.get_mut(entity).map(|c| {
-                 let actions: Vec<_> = c
-                     .actions
--                    .extract_if(.., |action| match action {
-+                    .extract_if(|action| match action {
-                         ControlAction::StartInput { input: i, .. }
-                         | ControlAction::CancelInput(i) => {
-                             matches!(i, InputKind::Jump | InputKind::Fly | InputKind::Roll)
 --- rtsim/src/lib.rs.orig	2025-02-19 10:27:05 UTC
 +++ rtsim/src/lib.rs
 @@ -137,6 +137,7 @@



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502240801.51O81NjX041749>