Skip to content

Commit

Permalink
Merge PR #1434: Rust 2024 call for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
traviscross committed Nov 27, 2024
2 parents 44471f6 + 8848ad8 commit f5dcfee
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions posts/2024-11-27-Rust-2024-public-testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: post
title: "Rust 2024 call for testing"
author: "Eric Huss & TC"
team: the Edition 2024 Project Group <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html>
---

# Rust 2024 call for testing

We've been hard at work on Rust 2024. We're thrilled about how it has turned out. It's going to be the largest edition since Rust 2015. It has a great many improvements that make the language more consistent and ergonomic, that further upon our relentless commitment to safety, and that will open the door to long-awaited features such as `gen` blocks, `let` chains, and the never (`!`) type. For more on the changes, see the nightly [Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html).

As planned, we recently merged the feature-complete Rust 2024 edition [to the release train](https://github.com/rust-lang/rust/pull/133349) for Rust 1.85. It has now entered **nightly beta**[^1].

You can help right now to make this edition a success by testing Rust 2024 on your own projects using nightly Rust. Migrating your projects to the new edition is straightforward and mostly automated. Here's how:

1. Install the most recent nightly with `rustup update nightly`.
2. In your project, run `cargo +nightly fix --edition`.
3. Edit `Cargo.toml` and change the edition field to say `edition = "2024"` and, if you have a `rust-version` specified, set `rust-version = "1.85"`.
4. Run `cargo +nightly check` to verify your project now works in the new edition.
5. Run some tests, and try out the new features!

(More details on how to migrate can be found [here](https://doc.rust-lang.org/nightly/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html) and within each of the [chapters](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html) describing the changes in Rust 2024.)

If you encounter any problems or see areas where we could make the experience better, tell us about it by [filing an issue](https://github.com/rust-lang/rust/issues/new/choose).

### Coming next

Rust 2024 will enter the beta channel on 2025-01-09, and will be released to stable Rust with Rust 1.85 on 2025-02-20.

[^1]: That is, it's still in nightly (not in the beta channel), but the edition items are frozen in a way similar to it being in the beta channel, and as with any beta, we'd like wide testing.

0 comments on commit f5dcfee

Please sign in to comment.