Skip to content

Commit

Permalink
Updates feature gate to use new_zeroed_alloc
Browse files Browse the repository at this point in the history
Needed in order to build with newest nightly

More specific version of new_uninit as introduced in

rust-lang/rust#129396
  • Loading branch information
wasv committed Oct 10, 2024
1 parent 987ebb4 commit 94079c9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/desktop/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![feature(
step_trait,
new_uninit,
new_zeroed_alloc,
slice_ptr_get,
array_chunks,
portable_simd,
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/crate/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![allow(clippy::unused_unit)]
#![feature(new_uninit)]
#![feature(new_zeroed_alloc)]

mod audio;
#[cfg(feature = "log")]
Expand Down
2 changes: 1 addition & 1 deletion render/soft-2d/base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const_mut_refs,
const_trait_impl,
generic_const_exprs,
new_uninit,
new_zeroed_alloc,
portable_simd
)]
#![warn(clippy::all)]
Expand Down
2 changes: 1 addition & 1 deletion render/soft-2d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down
2 changes: 1 addition & 1 deletion render/soft-3d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion render/wgpu-2d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(
new_uninit,
new_zeroed_alloc,
generic_const_exprs,
const_mut_refs,
const_trait_impl,
Expand Down
2 changes: 1 addition & 1 deletion render/wgpu-3d/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
portable_simd,
array_windows,
maybe_uninit_uninit_array,
new_uninit
new_zeroed_alloc
)]
#![warn(clippy::all)]

Expand Down

0 comments on commit 94079c9

Please sign in to comment.