linux/rust/kernel/alloc
Gary Guo e9df918d61 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>
2026-05-27 16:22:41 +02:00
..
allocator rust: alloc: simplify with NonNull::add() now that it is stable 2026-04-07 10:00:24 +02:00
kvec rust: kernel: mark as #[inline] all From::from()s for Error 2026-03-27 12:49:00 +01:00
allocator.rs Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
kbox.rs rust: alloc: remove 'static bound on ForeignOwnable 2026-05-27 16:22:41 +02:00
kvec.rs rust: alloc: add KUnit tests for KVVec shrink_to 2026-02-26 21:37:53 -08:00
layout.rs drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00