collections: Remove all collections traits#18474
Closed
alexcrichton wants to merge 1 commit intorust-lang:masterfrom
Closed
collections: Remove all collections traits#18474alexcrichton wants to merge 1 commit intorust-lang:masterfrom
alexcrichton wants to merge 1 commit intorust-lang:masterfrom
Conversation
Contributor
24 tasks
Contributor
|
I'm building off this specualtively. Got this: |
Contributor
|
@alexcrichton Ah, these are |
ffd7e03 to
ad6e5d3
Compare
Member
Author
|
Thanks for the heads up @gankro! I've updated to hopefully compile on windows as well now |
Contributor
|
ack, and now you have merge conflicts. So many collection changes 😭 |
ad6e5d3 to
4490bcd
Compare
src/libcollections/bench.rs
Outdated
Contributor
There was a problem hiding this comment.
I don't understand how this comment relates to the rest of the file.
4490bcd to
75dd1cf
Compare
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this pull request
Oct 31, 2014
Conflicts: src/libstd/path/mod.rs
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this pull request
Oct 31, 2014
Conflicts: src/libstd/path/mod.rs
Member
|
Needs a rebase |
75dd1cf to
5dd5f6a
Compare
5dd5f6a to
474c386
Compare
Contributor
|
Look, @bors. I know you really like generic collection programming, but you've gotta let go. Just... come on. 😞 |
As part of the collections reform RFC, this commit removes all collections traits in favor of inherent methods on collections themselves. All methods should continue to be available on all collections. This is a breaking change with all of the collections traits being removed and no longer being in the prelude. In order to update old code you should move the trait implementations to inherent implementations directly on the type itself. Note that some traits had default methods which will also need to be implemented to maintain backwards compatibility. [breaking-change] cc rust-lang#18424
474c386 to
21ac985
Compare
michaelsproul
added a commit
to michaelsproul/rust-typemap
that referenced
this pull request
Nov 1, 2014
michaelsproul
added a commit
to michaelsproul/rust-typemap
that referenced
this pull request
Nov 1, 2014
michaelsproul
added a commit
to michaelsproul/rust-typemap
that referenced
this pull request
Nov 1, 2014
bors
added a commit
that referenced
this pull request
Nov 1, 2014
As part of the collections reform RFC, this commit removes all collections traits in favor of inherent methods on collections themselves. All methods should continue to be available on all collections. This is a breaking change with all of the collections traits being removed and no longer being in the prelude. In order to update old code you should move the trait implementations to inherent implementations directly on the type itself. Note that some traits had default methods which will also need to be implemented to maintain backwards compatibility. [breaking-change] cc #18424
Contributor
|
Awesome! Building my patch now. |
lnicola
pushed a commit
to lnicola/rust
that referenced
this pull request
Dec 11, 2024
Make bracket typing handler work on more things
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As part of the collections reform RFC, this commit removes all collections
traits in favor of inherent methods on collections themselves. All methods
should continue to be available on all collections.
This is a breaking change with all of the collections traits being removed and
no longer being in the prelude. In order to update old code you should move the
trait implementations to inherent implementations directly on the type itself.
Note that some traits had default methods which will also need to be implemented
to maintain backwards compatibility.
[breaking-change]
cc #18424