See also: #2063 (comment)
Currently, the code generated by our IntoBytes derive includes calls to core::mem::size_of in order to determine whether a type has padding (unless the type is repr(transparent) or repr(packed)). This prevents deriving IntoBytes on unsized non-repr(transparent)/repr(packed) types.