Uh oh!
There was an error while loading. Please reload this page.
Renaming of the Iter types as in RFC #344 - #20056
Conversation
rust-highfive
commented
Dec 20, 2014
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. 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 CONTRIBUTING.md for more information. |
1wilkens
commented
Dec 20, 2014
Build/Tests are still running but I am optimistic :) |
csouth3
commented
Dec 20, 2014
Awesome work! :) |
aturon
commented
Dec 20, 2014
See #20061 for slice/vec |
1wilkens
commented
Dec 20, 2014
@csouth3 Right, I'm on it! |
1wilkens
commented
Dec 20, 2014
I feel like I messed up the commits.. I rebased my fork from rust/master but now the PR includes these commits. That is not supposed to happen right? |
Gankra
commented
Dec 20, 2014
Normally I would |
1wilkens
commented
Dec 20, 2014
Additional renames are up. Let me know if something is missing/should be changed |
csouth3
commented
Dec 20, 2014
New work looks good! Also, as @aturon mentioned, looks like he handles this work for slice (both libcollections and libcore) and vec in #20061. Unfortunately I think this means (though I'd wait for confirmation from him or @gankro) that you'll probably have to undo your changes to these files since most likely that pull request will land before yours :/ |
Gankra
commented
Dec 21, 2014
I'm inclined to let this be first-come-first-serve, but aturon's gone for the holidays so that might be tricky. Currently finishing up my exams; will review monday if no one else does first. |
1wilkens
commented
Dec 21, 2014
Yeah I skimmed through his PR. Would not be the biggest deal for me, since I had the learning experience anyway and the rest should still be useful. |
csouth3
commented
Dec 21, 2014
Sounds good 👍 But, after all, I don't really have any say here, so might as well just wait until Gankro can review after the weekend. Oh, and thanks again for doing this! :D |
alexcrichton
commented
Dec 21, 2014
Amazing! Thanks @MrFloya! I agree with @gankro that the queue is basically a first-come-first-serve kinda world, so we'll see who has to rebase first! (dun dun dun!) |
7cccfd9 to
ad623d4Compare1wilkens
commented
Dec 21, 2014
Okay so I rebased. This needs another r+ then right? |
alexcrichton
commented
Dec 22, 2014
Needs a rebase |
libcore: slice::Items -> slice::Iter, slice::MutItems -> slice::IterMut libcollections: *::Items -> *::Iter, *::MoveItems -> *::IntoIter, *::MutItems -> *::IterMut This is of course a [breaking-change].
1wilkens
commented
Dec 22, 2014
Should be okay now. r? |
libcollections:
AbsEntries -> AbsIter, Entries -> Iter, MoveEntries -> IntoIter, MutEntries -> IterMut
DifferenceItems -> Difference, SymDifferenceItems -> SymmetricDifference, IntersectionItems -> Intersection, UnionItems -> Union
libstd/hash/{table, map}:
Entries -> Iter, MoveItems -> IntoIter, MutEntries -> IterMut
Also a [breaking-change].1wilkens
commented
Dec 22, 2014
Okay I renamed the missing DifferenceItems and marked Clone [stable] again. |
Conflicts: src/libcollections/bit.rs src/libcore/str.rs
Minic rustc's new `format_args!` expansion
Minic rustc's new `format_args!` expansion
libcore: slice::Items -> slice::Iter, slice::MutItems -> slice::IterMut
libcollections: *::Items -> *::Iter, *::MoveItems -> *::IntoIter, *::MutItems -> *::IterMut
This is of course a [breaking-change].
Some Unstable attributes of functions affected might not longer need the attribute since the return type is now correctly named.
libstd::collections::hash is left out since the rename there is handled in a different PR as far as I know.
@gankro@aturon