diff options
| author | Miguel Ojeda <[email protected]> | 2023-02-24 09:11:50 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2023-04-10 21:55:43 +0000 |
| commit | 318c3cc8e107c2b36108132057ca90d0d56d1bd9 (patch) | |
| tree | c794f8b17ba3e4920809d372b1912859720c5cb7 /rust/macros/helpers.rs | |
| parent | rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop} (diff) | |
| download | kernel-318c3cc8e107c2b36108132057ca90d0d56d1bd9.tar.gz kernel-318c3cc8e107c2b36108132057ca90d0d56d1bd9.zip | |
rust: alloc: vec: Add some try_* methods we need
Add some missing fallible methods that we need.
They are all marked as:
#[stable(feature = "kernel", since = "1.0.0")]
for easy identification.
Lina: Extracted from commit 487d7578bd03 ("rust: alloc: add some `try_*`
methods we need") in rust-for-linux/rust.
Signed-off-by: Miguel Ojeda <[email protected]>
Signed-off-by: Asahi Lina <[email protected]>
Link: https://github.com/Rust-for-Linux/linux/commit/487d7578bd03
Link: https://lore.kernel.org/r/[email protected]
[ Match the non-fallible methods from version 1.62.0, since those
in commit 487d7578bd03 were written for 1.54.0-beta.1. ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/helpers.rs')
0 files changed, 0 insertions, 0 deletions
