From 5cfbfbdea53cd2de3b26b1f33eb59fd95ea66e40 Mon Sep 17 00:00:00 2001 From: yvt Date: Wed, 10 Aug 2022 00:06:55 +0900 Subject: [PATCH] fix(core): remove `#![feature(untagged_unions)]` Unions with `impl Copy` and `ManuallyDrop` fields have been stabilized by [rust-lang/rust#77547][1] back in 2020, making enabling the feature already unnecessary for us. A few more field types have been added to the allowlist later by [rust-lang/rust#97995][2], which also removed the feature as there was no intent to stabilize more field types. [1]: https://github.com/rust-lang/rust/pull/77547 [2]: https://github.com/rust-lang/rust/pull/97995 --- src/r3_core/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/r3_core/src/lib.rs b/src/r3_core/src/lib.rs index 95a884f546..d342dcc944 100644 --- a/src/r3_core/src/lib.rs +++ b/src/r3_core/src/lib.rs @@ -32,7 +32,6 @@ #![feature(const_trait_impl)] #![feature(const_ptr_write)] #![feature(core_intrinsics)] -#![feature(untagged_unions)] // `union` with non-`Copy` fields #![feature(assert_matches)] #![feature(const_mut_refs)] #![feature(const_ptr_read)]