Re: [PATCH v12 1/1] rust: interop: Add list module for C linked list interface

From: Danilo Krummrich

Date: Thu Mar 12 2026 - 15:51:08 EST


On Thu Mar 12, 2026 at 8:20 PM CET, Miguel Ojeda wrote:
> On Fri, Mar 6, 2026 at 9:37 PM Joel Fernandes <joelagnelf@xxxxxxxxxx> wrote:
>>
>> +//! // Create typed [`CList`] from sentinel head.
>> +//! // SAFETY: head is valid and initialized, items are `SampleItemC` with
>> +//! // embedded `link` field, and `Item` is `#[repr(transparent)]` over `SampleItemC`.
>> +//! let list = clist_create!(unsafe { head, Item, SampleItemC, link });
>
> Was the patch tested with Clippy? It has several issues.

I did not give it a shot yet, but given this and the other nits, this is beyond
what I want to fix up when applying the patch.

@Joel, can you please resend?

Thanks,
Danilo