From c309b3927f13db8b27fb060e0be29981f3ec015f Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Sat, 14 Sep 2024 14:06:04 -0700 Subject: [PATCH] [unstable-rust] Use `feature(large_assignments)`. --- all-is-cubes-base/src/lib.rs | 2 ++ all-is-cubes-base/src/math/aab.rs | 1 + all-is-cubes-base/src/math/face.rs | 1 + all-is-cubes-content/src/lib.rs | 3 +++ all-is-cubes-port/src/lib.rs | 2 ++ all-is-cubes-ui/src/lib.rs | 2 ++ all-is-cubes/src/lib.rs | 2 ++ 7 files changed, 13 insertions(+) diff --git a/all-is-cubes-base/src/lib.rs b/all-is-cubes-base/src/lib.rs index a47f3b346..fa8ec9367 100644 --- a/all-is-cubes-base/src/lib.rs +++ b/all-is-cubes-base/src/lib.rs @@ -1,3 +1,5 @@ +#![feature(large_assignments)] +#![move_size_limit = "256"] #![feature(let_chains)] #![feature(never_type)] diff --git a/all-is-cubes-base/src/math/aab.rs b/all-is-cubes-base/src/math/aab.rs index 8664f8f6d..17fc44fbf 100644 --- a/all-is-cubes-base/src/math/aab.rs +++ b/all-is-cubes-base/src/math/aab.rs @@ -353,6 +353,7 @@ impl fmt::Debug for Aab { impl Wireframe for Aab { #[inline(never)] + #[allow(large_assignments)] fn wireframe_points(&self, output: &mut E) where E: Extend, diff --git a/all-is-cubes-base/src/math/face.rs b/all-is-cubes-base/src/math/face.rs index ac97aa0b6..ba2c90aee 100644 --- a/all-is-cubes-base/src/math/face.rs +++ b/all-is-cubes-base/src/math/face.rs @@ -1042,6 +1042,7 @@ mod tests { #[test] #[rustfmt::skip] + #[allow(large_assignments)] fn from_snapped_vector_cases() { let mut f = MultiFailure::new(); for (face, vector, comment) in [ diff --git a/all-is-cubes-content/src/lib.rs b/all-is-cubes-content/src/lib.rs index 5413ebb63..984656dae 100644 --- a/all-is-cubes-content/src/lib.rs +++ b/all-is-cubes-content/src/lib.rs @@ -1,3 +1,6 @@ +#![feature(large_assignments)] +#![move_size_limit = "5000"] + //! Demo content for All is Cubes. //! //! All is Cubes is a “voxel game” where each block is made out of smaller blocks diff --git a/all-is-cubes-port/src/lib.rs b/all-is-cubes-port/src/lib.rs index b4c4de8aa..7b387a6e6 100644 --- a/all-is-cubes-port/src/lib.rs +++ b/all-is-cubes-port/src/lib.rs @@ -1,3 +1,5 @@ +#![feature(large_assignments)] +#![move_size_limit = "5000"] #![feature(let_chains)] #![feature(never_type)] diff --git a/all-is-cubes-ui/src/lib.rs b/all-is-cubes-ui/src/lib.rs index 3783bdb56..52839c20d 100644 --- a/all-is-cubes-ui/src/lib.rs +++ b/all-is-cubes-ui/src/lib.rs @@ -1,4 +1,6 @@ #![feature(async_closure)] +#![feature(large_assignments)] +#![move_size_limit = "2100"] // TODO: look at `Session` size #![feature(let_chains)] #![feature(never_type)] #![feature(noop_waker)] diff --git a/all-is-cubes/src/lib.rs b/all-is-cubes/src/lib.rs index 9352aff80..3823d0bfb 100644 --- a/all-is-cubes/src/lib.rs +++ b/all-is-cubes/src/lib.rs @@ -1,5 +1,7 @@ #![feature(doc_notable_trait)] #![feature(impl_trait_in_assoc_type)] +#![feature(large_assignments)] +#![move_size_limit = "2000"] #![feature(let_chains)] #![feature(never_type)] #![feature(trait_upcasting)]