From 243302d3effc71a295cf096fae9ae5d7864a81ae Mon Sep 17 00:00:00 2001 From: Richard Pringle Date: Fri, 2 Aug 2024 16:09:49 +0200 Subject: [PATCH] Add `bytemuck` attribute to `NoUninit` derive (#259) --- derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/derive/src/lib.rs b/derive/src/lib.rs index cfe6270..806a72f 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -221,7 +221,7 @@ pub fn derive_zeroable( /// - The enum must be explicit `#[repr(Int)]`, `#[repr(C)]`, or both /// - All variants must be fieldless /// - The enum must contain no generic parameters -#[proc_macro_derive(NoUninit)] +#[proc_macro_derive(NoUninit, attributes(bytemuck))] pub fn derive_no_uninit( input: proc_macro::TokenStream, ) -> proc_macro::TokenStream {