edition-guide
edition-guide copied to clipboard
A guide to changes between various editions of Rust
I feel like the guide should answer this question, but it doesn't: when does it make sense to update my packages to a new edition? What are the downsides and...
Rust code isn’t always compiled via Cargo, and it’s surprisingly hard to figure out that Rust 2018 is not the default for `rustc` and that you can run `rustc --edition=2018`....
The edition guide contains a chapter on Path Clarity (3.1.2), which explains that for a module foo with submodules, foo/mod.rs is no longer required. From the text, it is not...
I think every edition migration should have the following sections: ``` # Summary *In a nutshell, what changed, and how do I migrate?* # Motivation and details *Why was this...
I was reading the [Macro Changes](https://rust-lang-nursery.github.io/edition-guide/rust-2018/macros/macro-changes.html) page: >Note that you'll still need `#[macro_use]` to use macros you've defined in your own crate; this feature only works for importing macros from...
https://github.com/rust-lang-nursery/edition-guide/blame/5f3cc2a5618700efcde3bc00799744f21fa9ad2e/src/editions/transitioning-an-existing-project-to-a-new-edition.md#L95-L106 says: > Eventually, we want `cargo fix` to fix all these idioms automatically in the same manner we did for upgrading to the 2018 edition. **Currently, though, the *"idiom...
Rust tracking issue: https://github.com/rust-lang/rust/issues/57288 When that is resolved, this paragraph should be updated/removed: https://github.com/rust-lang-nursery/edition-guide/blame/master/src/rust-2018/module-system/path-clarity.md#L65-L87
Following the changes made in https://github.com/rust-lang/rust/pull/116016.
Adds a chapter for the unsafe additions. Draft pending https://github.com/rust-lang/rust/pull/125990 and possibly https://github.com/rust-lang/rust/pull/125970.
CC https://github.com/rust-lang/rust/issues/132230 This is a draft; it hasn't been approved yet by the rest of the team.