rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] rust: alloc: vec: Add some missing fallible try_* methods
@ 2023-02-24  9:11 Asahi Lina
  2023-02-24  9:11 ` [PATCH 1/4] rust: Import upstream `alloc::vec::set_len_on_drop` module Asahi Lina
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Asahi Lina @ 2023-02-24  9:11 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng,
	Gary Guo, Björn Roy Baron
  Cc: linux-kernel, rust-for-linux, asahi, Asahi Lina

Hi everyone!

This short series is part of the set of dependencies for the drm/asahi
Apple M1/M2 GPU driver.

This series imports part of a commit from Miguel in
rust-for-linux/linux, which adds missing fallible
mutation/allocation methods to `Vec`. These are generally useful to make
standard features available to the kernel environment, which does not
have infallible allocation.

The additions in turn depend on importing two submodules from the Rust
stdlib, which I have attributed using the same commit message template
used for the original import of this part of the codebase. These
versions come from Rust 1.66, but also build on Rust 1.62 (the current
version upstream). I added the SPDX identifiers in a separate commit to
clearly separate the original code from subsequent changes.

Signed-off-by: Asahi Lina <lina@asahilina.net>
---
Asahi Lina (3):
      rust: Import upstream `alloc::vec::set_len_on_drop` module
      rust: Import upstream `alloc::vec::spec_extend` module
      rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop}

Miguel Ojeda (1):
      rust: alloc: vec: Add some try_* methods we need
 rust/alloc/vec/mod.rs             | 137 +++++++++++++++++++++++++++++-
 rust/alloc/vec/set_len_on_drop.rs |  30 +++++++
 rust/alloc/vec/spec_extend.rs     | 172 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 336 insertions(+), 3 deletions(-)
---
base-commit: 83f978b63fa7ad474ca22d7e2772c5988101c9bd
change-id: 20230224-rust-vec-df72fa4b806c

Thank you,
~~ Lina


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-10  3:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24  9:11 [PATCH 0/4] rust: alloc: vec: Add some missing fallible try_* methods Asahi Lina
2023-02-24  9:11 ` [PATCH 1/4] rust: Import upstream `alloc::vec::set_len_on_drop` module Asahi Lina
2023-02-24  9:11 ` [PATCH 2/4] rust: Import upstream `alloc::vec::spec_extend` module Asahi Lina
2023-02-24  9:11 ` [PATCH 3/4] rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop} Asahi Lina
2023-02-24  9:11 ` [PATCH 4/4] rust: alloc: vec: Add some try_* methods we need Asahi Lina
2023-04-10  3:42 ` [PATCH 0/4] rust: alloc: vec: Add some missing fallible try_* methods Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).