Re: [PATCH v4 1/2] rust: transmute: implement FromBytes and AsBytes for inhabited ZSTs

From: Alexandre Courbot

Date: Thu Dec 18 2025 - 08:32:27 EST


On Mon Dec 15, 2025 at 4:45 PM JST, Benno Lossin wrote:
> On Mon Dec 15, 2025 at 6:49 AM CET, Alexandre Courbot wrote:
>> This is useful when using types that may or may not be empty in generic
>> code relying on these traits. It is also safe because technically a
>> no-op.
>>
>> Reviewed-by: Alistair Popple <apopple@xxxxxxxxxx>
>> Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
>> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
>
> Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>

Miguel, are you ok if we take this one through the drm-rust tree? Nova
is likely to make use of it this cycle.