#[derivative(Debug)]
does not work well with packed structs
#82
Labels
bug
The crate does not work as expected
#[derivative(Debug)]
does not work well with packed structs
#82
Example:
Default
#[derive(Debug)]
requires that the struct also derivesCopy
andClone
:After adding
#[derive(Copy, Clone)]
, defaultDebug
expands to the following (notice the copying of the fields):#[derivative(Debug)]
just always references the fields instead, and referencing fields in a packed struct is -- as far as I can tell -- bad:The text was updated successfully, but these errors were encountered: