Re: [PATCH v4] rust: list: Add unsafe for container_of

From: Philipp Stanner

Date: Mon Feb 23 2026 - 02:34:33 EST


On Fri, 2026-02-20 at 02:08 +0100, Miguel Ojeda wrote:
> On Mon, Feb 16, 2026 at 2:17 PM Philipp Stanner <phasta@xxxxxxxxxx> wrote:
> >
> > Add unsafe blocks to container_of to fix the issue.
>
> So I don't think this was tested with `CLIPPY=1`, because there are
> other safety comments missing even after this is applied.
>
> Please note that `CLIPPY=1` must remain clean for all Rust code:
>
>     https://rust-for-linux.com/contributing#submit-checklist-addendum
>
> I have pushed to `rust-fixes` the patch with placeholders to show what
> is missing.
>
> I am not sure if I will keep it there.
>

Feel free to drop it for now, I can go through it properly with the
list author to see what the most accurate formulation would be.