-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for the 2018 edition’s prelude #51418
Copy link
Copy link
Closed
Labels
A-edition-2018Area: The 2018 editionArea: The 2018 editionC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.F-rust_2018_preview`#![feature(rust_2018_preview)]``#![feature(rust_2018_preview)]`T-langRelevant to the language teamRelevant to the language teamT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.WG-epochWorking group: Epoch (2018) managementWorking group: Epoch (2018) management
Metadata
Metadata
Assignees
Labels
A-edition-2018Area: The 2018 editionArea: The 2018 editionC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.F-rust_2018_preview`#![feature(rust_2018_preview)]``#![feature(rust_2018_preview)]`T-langRelevant to the language teamRelevant to the language teamT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.WG-epochWorking group: Epoch (2018) managementWorking group: Epoch (2018) management
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, every module has something like
use std::prelude::v1::*;implicitly inserted into it by default.In #49305 we added the
TryFromandTryIntotraits to the prelude, and reverted that in #49518 because that a breaking change for a significant number on crates that had their ownTryFromorTryIntotraits. (Ironically, identical to thestdones and duplicated because those were still unstable.)Consensus is that we’d still like to have those traits in the prelude, but to avoid breakage we need to make that opt-in. The upcoming 2018 edition seems to be a good opportunity for that. For modules in crates that opt into the 2018 edition, we could replace
v1in that inserted code withedition2018and createsrc/libstd/prelude/edition2018.rsandsrc/libcore/prelude/edition2018.rslike so:Are there more items we considered adding to the prelude but didn’t because of breakage or breakage risk?
Update: implemented in #51434.