mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-21 14:22:26 +00:00
Add bytemuck
attribute to NoUninit
derive (#259)
This commit is contained in:
parent
e1baf85f09
commit
243302d3ef
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user