Proposal
Cargo currently follows the edition specified in Cargo.toml. When doing cargo init, the latest stable edition is selected to create a new crate. rustc, to maintain backwards compatibility, doesn't change the implicit edition when unspecified from the original "2015". But nowadays, users are unlikely to be following documentation targeting such an old edition, and some of the differences can be confusing when following instructions result on a failing build. Improving diagnostics for behavior that diverges between editions is one mitigation, but we should also be nudging people to be explicit on which edition they meant. The brunt of the effect toolchain behavior is mainly forced on people just starting to learn Rust, and it can lead to confusion.
Implementation-wise, the changes are minimal if we go with a plain unsilenceable note: rust-lang/rust#158102
Mentors or Reviewers
@estebank
Process
The main points of the Major Change Process are as follows:
You can read more about Major Change Proposals on forge.
Proposal
Cargo currently follows the edition specified in
Cargo.toml. When doingcargo init, the latest stable edition is selected to create a new crate.rustc, to maintain backwards compatibility, doesn't change the implicit edition when unspecified from the original "2015". But nowadays, users are unlikely to be following documentation targeting such an old edition, and some of the differences can be confusing when following instructions result on a failing build. Improving diagnostics for behavior that diverges between editions is one mitigation, but we should also be nudging people to be explicit on which edition they meant. The brunt of the effect toolchain behavior is mainly forced on people just starting to learn Rust, and it can lead to confusion.Implementation-wise, the changes are minimal if we go with a plain unsilenceable note: rust-lang/rust#158102
Mentors or Reviewers
@estebank
Process
The main points of the Major Change Process are as follows:
@rustbot secondor kickoff a team FCP with@rfcbot fcp $RESOLUTION.You can read more about Major Change Proposals on forge.