rust: alloc: update `VecExt` to take allocation flags
authorWedson Almeida Filho <walmeida@microsoft.com>
Thu, 28 Mar 2024 01:36:00 +0000 (22:36 -0300)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 16 Apr 2024 20:50:04 +0000 (22:50 +0200)
commit5ab560ce12ed0df3450968cfe4211e398ff2a8d7
treebdfaadad4ebd10c15af61bfc175e97f677e89085
parent08d3f54928796557fc832467ad54f04908fc14e4
rust: alloc: update `VecExt` to take allocation flags

We also rename the methods by removing the `try_` prefix since the names
are available due to our usage of the `no_global_oom_handling` config
when building the `alloc` crate.

Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240328013603.206764-8-wedsonaf@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/alloc/vec_ext.rs
rust/kernel/error.rs
rust/kernel/lib.rs
rust/kernel/str.rs
rust/kernel/types.rs
samples/rust/rust_minimal.rs