Add bytemuck attribute to NoUninit derive (#259)

This commit is contained in:
Richard Pringle 2024-08-02 16:09:49 +02:00 committed by GitHub
parent e1baf85f09
commit 243302d3ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,7 +221,7 @@ pub fn derive_zeroable(
/// - The enum must be explicit `#[repr(Int)]`, `#[repr(C)]`, or both /// - The enum must be explicit `#[repr(Int)]`, `#[repr(C)]`, or both
/// - All variants must be fieldless /// - All variants must be fieldless
/// - The enum must contain no generic parameters /// - The enum must contain no generic parameters
#[proc_macro_derive(NoUninit)] #[proc_macro_derive(NoUninit, attributes(bytemuck))]
pub fn derive_no_uninit( pub fn derive_no_uninit(
input: proc_macro::TokenStream, input: proc_macro::TokenStream,
) -> proc_macro::TokenStream { ) -> proc_macro::TokenStream {