Introduction
1.
What are editions?
1.1.
Creating a new project
1.2.
Transitioning an existing project to a new edition
1.3.
Advanced migrations
2.
Rust 2015
3.
Rust 2018
3.1.
Path and module system changes
3.2.
Anonymous trait function parameters deprecated
3.3.
New keywords
3.4.
Method dispatch for raw pointers to inference variables
3.5.
Cargo changes
4.
Rust 2021
4.1.
Additions to the prelude
4.2.
Default Cargo feature resolver
4.3.
IntoIterator for arrays
4.4.
Disjoint capture in closures
4.5.
Panic macro consistency
4.6.
Reserving syntax
4.7.
Warnings promoted to errors
4.8.
Or patterns in macro-rules
Light (default)
Rust
Coal
Navy
Ayu
The Edition Guide
Method dispatch for raw pointers to inference variables
Summary
The
tyvar_behind_raw_pointer
lint is now a hard error.
Details
See Rust issue
#46906
for details.