-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Renaming of the Iter types as in RFC #344 #20056
Conversation
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. |
Build/Tests are still running but I am optimistic :) |
Awesome work! :) |
See #20061 for slice/vec |
@csouth3 Right, I'm on it! |
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? |
Normally I would |
5c746c3
to
71523db
Compare
Additional renames are up. Let me know if something is missing/should be changed |
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 :/ |
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. |
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. |
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 |
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
ad623d4
Compare
Okay so I rebased. This needs another r+ then right? |
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].
ad623d4
to
5e32949
Compare
Should be okay now. r? |
#[stable] | ||
impl<'a, T> Clone for Items<'a, T> { | ||
fn clone(&self) -> Items<'a, T> { *self } | ||
#[experimental = "needs review"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
5e32949
to
9c92168
Compare
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].
9c92168
to
22050e3
Compare
Okay I renamed the missing DifferenceItems and marked Clone [stable] again. |
Conflicts: src/libcollections/bit.rs src/libcore/str.rs
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