From 94079c933853667988d299dbd21b13e088bc6ca8 Mon Sep 17 00:00:00 2001 From: Bailey Stevens Date: Wed, 9 Oct 2024 23:55:47 -0400 Subject: [PATCH] Updates feature gate to use new_zeroed_alloc Needed in order to build with newest nightly More specific version of new_uninit as introduced in https://github.com/rust-lang/rust/issues/129396 --- core/src/lib.rs | 2 +- frontend/desktop/src/main.rs | 2 +- frontend/web/crate/src/lib.rs | 2 +- render/soft-2d/base/src/lib.rs | 2 +- render/soft-2d/src/lib.rs | 2 +- render/soft-3d/src/lib.rs | 2 +- render/wgpu-2d/src/lib.rs | 2 +- render/wgpu-3d/src/lib.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/lib.rs b/core/src/lib.rs index d27b25b..f989976 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -7,7 +7,7 @@ maybe_uninit_uninit_array, maybe_uninit_slice, portable_simd, - new_uninit, + new_zeroed_alloc, str_from_utf16_endian, array_chunks, unsized_const_params diff --git a/frontend/desktop/src/main.rs b/frontend/desktop/src/main.rs index 9277c5a..43fe797 100644 --- a/frontend/desktop/src/main.rs +++ b/frontend/desktop/src/main.rs @@ -1,6 +1,6 @@ #![feature( step_trait, - new_uninit, + new_zeroed_alloc, slice_ptr_get, array_chunks, portable_simd, diff --git a/frontend/web/crate/src/lib.rs b/frontend/web/crate/src/lib.rs index 1bb0159..0dbf304 100644 --- a/frontend/web/crate/src/lib.rs +++ b/frontend/web/crate/src/lib.rs @@ -1,5 +1,5 @@ #![allow(clippy::unused_unit)] -#![feature(new_uninit)] +#![feature(new_zeroed_alloc)] mod audio; #[cfg(feature = "log")] diff --git a/render/soft-2d/base/src/lib.rs b/render/soft-2d/base/src/lib.rs index 00b92fd..5b05aff 100644 --- a/render/soft-2d/base/src/lib.rs +++ b/render/soft-2d/base/src/lib.rs @@ -4,7 +4,7 @@ const_mut_refs, const_trait_impl, generic_const_exprs, - new_uninit, + new_zeroed_alloc, portable_simd )] #![warn(clippy::all)] diff --git a/render/soft-2d/src/lib.rs b/render/soft-2d/src/lib.rs index 1b70b3d..08a3ea8 100644 --- a/render/soft-2d/src/lib.rs +++ b/render/soft-2d/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(generic_const_exprs, new_uninit, portable_simd)] +#![feature(generic_const_exprs, new_zeroed_alloc, portable_simd)] #![warn(clippy::all)] #![allow(incomplete_features)] diff --git a/render/soft-3d/src/lib.rs b/render/soft-3d/src/lib.rs index 3eb3f6e..deec278 100644 --- a/render/soft-3d/src/lib.rs +++ b/render/soft-3d/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(portable_simd, const_mut_refs, const_trait_impl, new_uninit)] +#![feature(portable_simd, const_mut_refs, const_trait_impl, new_zeroed_alloc)] #![warn(clippy::all)] mod data; diff --git a/render/wgpu-2d/src/lib.rs b/render/wgpu-2d/src/lib.rs index f22ae98..f3b729a 100644 --- a/render/wgpu-2d/src/lib.rs +++ b/render/wgpu-2d/src/lib.rs @@ -1,5 +1,5 @@ #![feature( - new_uninit, + new_zeroed_alloc, generic_const_exprs, const_mut_refs, const_trait_impl, diff --git a/render/wgpu-3d/src/lib.rs b/render/wgpu-3d/src/lib.rs index 7392186..717bc3f 100644 --- a/render/wgpu-3d/src/lib.rs +++ b/render/wgpu-3d/src/lib.rs @@ -4,7 +4,7 @@ portable_simd, array_windows, maybe_uninit_uninit_array, - new_uninit + new_zeroed_alloc )] #![warn(clippy::all)]