git: ba8bb92c6189 - main - games/veloren: Unbreak with Rust 1.56.0

From: Tobias Kortkamp <tobik_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 08:57:34 UTC
The branch main has been updated by tobik:

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

commit ba8bb92c6189b1d08a0095137cb1ab0f610b9312
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-10-19 06:37:06 +0000
Commit:     Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2021-10-25 08:49:18 +0000

    games/veloren: Unbreak with Rust 1.56.0
    
    error[E0557]: feature has been removed
       --> /wrkdirs/usr/ports/games/veloren/work/veloren-e4716147a7356eb13088e7d74ace3ccdcb5cd900/cargo-crates/packed_simd_2-0.3.5/src/lib.rs:215:5
        |
    215 |     const_generics,
        |     ^^^^^^^^^^^^^^ feature has been removed
        |
        = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`
    
    PR:             259251
---
 games/veloren/files/patch-rust-1.56 | 64 +++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/games/veloren/files/patch-rust-1.56 b/games/veloren/files/patch-rust-1.56
new file mode 100644
index 000000000000..736e6cb24636
--- /dev/null
+++ b/games/veloren/files/patch-rust-1.56
@@ -0,0 +1,64 @@
+https://gitlab.com/veloren/veloren/-/commit/88685cc01650
+https://gitlab.com/veloren/veloren/-/commit/2a82405df26a
+https://github.com/rust-lang/packed_simd/commit/45d5347a0d21
+
+--- cargo-crates/packed_simd_2-0.3.5/src/lib.rs.orig	1970-01-01 00:00:00 UTC
++++ cargo-crates/packed_simd_2-0.3.5/src/lib.rs
+@@ -212,7 +212,7 @@
+ //! guide](https://rust-lang-nursery.github.io/packed_simd/perf-guide/)
+ 
+ #![feature(
+-    const_generics,
++    adt_const_params,
+     repr_simd,
+     rustc_attrs,
+     platform_intrinsics,
+--- common/net/src/lib.rs.orig	2021-09-10 20:02:36 UTC
++++ common/net/src/lib.rs
+@@ -1,8 +1,7 @@
+ #![allow(incomplete_features)]
+ #![feature(
+-    const_generics,
++    generic_const_exprs,
+     const_fn_floating_point_arithmetic,
+-    const_evaluatable_checked
+ )]
+ pub mod msg;
+ pub mod sync;
+--- common/src/lib.rs.orig	2021-09-10 20:02:36 UTC
++++ common/src/lib.rs
+@@ -7,7 +7,6 @@
+     arbitrary_enum_discriminant,
+     associated_type_defaults,
+     bool_to_option,
+-    const_generics,
+     fundamental,
+     iter_map_while,
+     label_break_value,
+--- voxygen/anim/src/lib.rs.orig	2021-09-10 20:02:36 UTC
++++ voxygen/anim/src/lib.rs
+@@ -1,4 +1,3 @@
+-#![feature(const_generics)]
+ #![feature(generic_associated_types)]
+ #![allow(incomplete_features)]
+ #[cfg(all(feature = "be-dyn-lib", feature = "use-dyn-lib"))]
+--- voxygen/src/lib.rs.orig	2021-09-10 20:02:36 UTC
++++ voxygen/src/lib.rs
+@@ -7,7 +7,6 @@
+     array_methods,
+     array_zip,
+     bool_to_option,
+-    const_generics,
+     drain_filter,
+     once_cell,
+     trait_alias
+--- world/src/lib.rs.orig	2021-09-10 20:02:36 UTC
++++ world/src/lib.rs
+@@ -10,7 +10,6 @@
+ #![feature(
+     arbitrary_enum_discriminant,
+     bool_to_option,
+-    const_generics,
+     const_panic,
+     label_break_value,
+     array_map