rust: alloc: add Vec::pop
authorAlice Ryhl <aliceryhl@google.com>
Fri, 2 May 2025 13:19:30 +0000 (13:19 +0000)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 7 May 2025 16:38:24 +0000 (18:38 +0200)
commitf2b4dd7093438e4884cb01a783212abfbc9cc40b
tree82e0baf979bf1648048a98183be6012be047fe7a
parenta1e4d5c9d708d7a0e7071015a120a4489404128f
rust: alloc: add Vec::pop

This introduces a basic method that our custom Vec is missing. I expect
that it will be used in many places, but at the time of writing, Rust
Binder has six calls to Vec::pop.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250502-vec-methods-v5-2-06d20ad9366f@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/alloc/kvec.rs