-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Add TryFrom and TryInto to the prelude" #49518
Conversation
This reverts commit 09008cc.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@bors: p=10 This fixes breakage on Nightly and needs to be in 1.26. |
@bors: r+ |
📌 Commit ba4f310 has been approved by |
Revert "Add TryFrom and TryInto to the prelude" This reverts commit 09008cc. This addition landed in #49305 and turned out to break crates that had their own copy of `TryFrom` in order to use it on the Stable channel :( We’ll explore the possibility of the 2018 edition having a different prelude that includes this traits. However per the editions RFC this requires implementing a warning in the 2015 edition for code that *would* break.
☀️ Test successful - status-appveyor, status-travis |
Where would we track the backport of this into beta? |
@dgriffen oh beta just branched so this should already be included in beta |
This reverts commit 09008cc.
This addition landed in #49305 and turned out to break many crates :( Those had other traits with methods named
try_from
andtry_into
, and calls became ambiguous. For example: #49305 (comment). Most of them copied theTryFrom
orTryInto
trait into a library in order to use it on the Stable channel while the standard library ones were unstable.We’ll explore the possibility of the 2018 edition having a different prelude that includes this traits. However per the editions RFC this requires implementing a warning in the 2015 edition for code that would break.