Re: [PATCH v4 10/27] rust: device: make Core and CoreInternal lifetime-parameterized
From: Alexandre Courbot
Date: Mon May 25 2026 - 07:03:16 EST
On Fri May 22, 2026 at 8:34 AM JST, Danilo Krummrich wrote:
> Device<Core> references in probe callbacks are scoped to the callback,
> not the full binding duration. Add a lifetime parameter to Core and
> CoreInternal to accurately represent this in the type system.
>
> Suggested-by: Gary Guo <gary@xxxxxxxxxxx>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>