You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emit note when calling rustc without specifying an edition #1019
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
This issue is not meant to be used for technical discussion. There is a Zulip stream for that.
Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
Concerns or objections can formally be registered here by adding a comment.
@rustbot concern reason-for-concern
<description of the concern>
The final comment period is now complete, this major change is now accepted. 🎉
As the automated representative, I want to express gratitude to the author for their work and everyone else who contributed to this major change proposal.
If you think this major change shouldn't have been accepted, feel free to remove the major-change-accepted label and reopen this issue.
Activity
rustbot commentedon Jul 21, 2026
Important
This issue is not meant to be used for technical discussion. There is a Zulip stream for that.
Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
Concerns or objections can formally be registered here by adding a comment.
Concerns can be lifted with:
See documentation at https://forge.rust-lang.org
jieyouxu commentedon Jul 21, 2026
Given that this is a easily reversible note
@rustbot second
rustbot commentedon Jul 31, 2026
The final comment period is now complete, this major change is now accepted. 🎉
As the automated representative, I want to express gratitude to the author for their work and everyone else who contributed to this major change proposal.
If you think this major change shouldn't have been accepted, feel free to remove the
major-change-acceptedlabel and reopen this issue.Note
Further progress is now tracked over at rust-lang/rust#160243.