Re: [PATCH v3 01/27] rust: alloc: remove `'static` bound on `ForeignOwnable`
From: Alexandre Courbot
Date: Mon May 18 2026 - 10:43:14 EST
On Sun May 17, 2026 at 9:00 AM JST, Danilo Krummrich wrote:
> From: Gary Guo <gary@xxxxxxxxxxx>
>
> The `'static` bound is currently necessary because there's no
> restriction on the lifetime of the GAT. Add a `Self: 'a` bound to
> restrict possible lifetimes on `Borrowed` and `BorrowedMut`, and lift
> the `'static` requirement.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>