diff options
| author | Gary Guo <gary@garyguo.net> | 2026-05-25 22:20:49 +0200 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-05-27 16:22:41 +0200 |
| commit | e9df918d61e08f4281c3bcd42486f1505f396b1d (patch) | |
| tree | 99a72649cb570efef93a07e0fe4a7fcc0617292a /include/linux/assoc_array.h | |
| parent | e566a9e17f3774c962b6d2522750f227f027edc6 (diff) | |
rust: alloc: remove `'static` bound on `ForeignOwnable`
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.
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Gary Guo <gary@garyguo.net>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://patch.msgid.link/20260525202921.124698-3-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux/assoc_array.h')
0 files changed, 0 insertions, 0 deletions
