-
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
std: Add Default/IntoIterator/ToOwned to the prelude #24541
Conversation
r? @aturon |
(rust_highfive has picked a reviewer for you, use r? to override) |
ad96559
to
38decbc
Compare
This is an implementation of [RFC 1030][rfc] which adds these traits to the prelude and additionally removes all inherent `into_iter` methods on collections in favor of the trait implementation (which is now accessible by default). [rfc]: rust-lang/rfcs#1030 This is technically a breaking change due to the prelude additions and removal of inherent methods, but it is expected that essentially no code breaks in practice. [breaking-change] Closes rust-lang#24538
38decbc
to
8f5b5f9
Compare
@bors: r+ p=10 |
📌 Commit 8f5b5f9 has been approved by |
Nominating for beta inclusion. |
This is an implementation of [RFC 1030][rfc] which adds these traits to the prelude and additionally removes all inherent `into_iter` methods on collections in favor of the trait implementation (which is now accessible by default). [rfc]: rust-lang/rfcs#1030 This is technically a breaking change due to the prelude additions and removal of inherent methods, but it is expected that essentially no code breaks in practice. [breaking-change] Closes rust-lang#24538
⌛ Testing commit 8f5b5f9 with merge 0ff9888... |
⛄ The build was interrupted to prioritize another pull request. |
⌛ Testing commit 8f5b5f9 with merge 977b6fd... |
⛄ The build was interrupted to prioritize another pull request. |
(special-casing for 1.0; i.e. a "minor" change like this would not normally go into beta, though of course it is a breaking change b/c of prelude and thus we are accepting it for beta.) going from nominated to (nominated, accepted) |
This is an implementation of RFC 1030 which adds these traits to the
prelude and additionally removes all inherent
into_iter
methods on collectionsin favor of the trait implementation (which is now accessible by default).
This is technically a breaking change due to the prelude additions and removal
of inherent methods, but it is expected that essentially no code breaks in
practice.
[breaking-change]
Closes #24538