[PATCH 0/2] Rust 1.72.0 upgrade

Miguel Ojeda posted 2 patches 2 years, 3 months ago
Documentation/process/changes.rst |   2 +-
rust/alloc/alloc.rs               |   9 +-
rust/alloc/boxed.rs               |  10 +-
rust/alloc/lib.rs                 |  10 +-
rust/alloc/vec/drain_filter.rs    | 199 ------------------------------
rust/alloc/vec/extract_if.rs      | 115 +++++++++++++++++
rust/alloc/vec/mod.rs             | 106 ++++++++--------
rust/kernel/sync/arc.rs           |   2 +-
scripts/min-tool-version.sh       |   2 +-
9 files changed, 188 insertions(+), 267 deletions(-)
delete mode 100644 rust/alloc/vec/drain_filter.rs
create mode 100644 rust/alloc/vec/extract_if.rs
[PATCH 0/2] Rust 1.72.0 upgrade
Posted by Miguel Ojeda 2 years, 3 months ago
This is the third upgrade to the Rust toolchain since the initial Rust
merge, from 1.71.1 to 1.72.0 (i.e. the latest, to be released tomorrow).

Please see the main patch message for a long explanation of the upgrade,
the policy for future upgrades and some indications on how to easily
review this.

The series is based on `rust-next`.

Miguel Ojeda (2):
  rust: arc: add explicit `drop()` around `Box::from_raw()`
  rust: upgrade to Rust 1.72.0

 Documentation/process/changes.rst |   2 +-
 rust/alloc/alloc.rs               |   9 +-
 rust/alloc/boxed.rs               |  10 +-
 rust/alloc/lib.rs                 |  10 +-
 rust/alloc/vec/drain_filter.rs    | 199 ------------------------------
 rust/alloc/vec/extract_if.rs      | 115 +++++++++++++++++
 rust/alloc/vec/mod.rs             | 106 ++++++++--------
 rust/kernel/sync/arc.rs           |   2 +-
 scripts/min-tool-version.sh       |   2 +-
 9 files changed, 188 insertions(+), 267 deletions(-)
 delete mode 100644 rust/alloc/vec/drain_filter.rs
 create mode 100644 rust/alloc/vec/extract_if.rs


base-commit: 4af84c6a85c63bec24611e46bb3de2c0a6602a51
-- 
2.42.0
Re: [PATCH 0/2] Rust 1.72.0 upgrade
Posted by Miguel Ojeda 2 years, 2 months ago
On Wed, Aug 23, 2023 at 6:02 PM Miguel Ojeda <ojeda@kernel.org> wrote:
>
> This is the third upgrade to the Rust toolchain since the initial Rust
> merge, from 1.71.1 to 1.72.0 (i.e. the latest, to be released tomorrow).
>
> Please see the main patch message for a long explanation of the upgrade,
> the policy for future upgrades and some indications on how to easily
> review this.
>
> The series is based on `rust-next`.

Applied to `rust-next`, using 1.72.1 instead of .0 (no changes
otherwise, i.e. in `alloc`) and reworded to mention that we were
hitting the bug with debug assertions enabled.

Thanks everyone!

Cheers,
Miguel