Uh oh!
There was an error while loading. Please reload this page.
Derive std::cmp::Reverse as Copy or Clone - #47379
Conversation
If the type parameter is Copy or Clone, then `Reverse` should be too.
rust-highfive
commented
Jan 12, 2018
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @BurntSushi (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. |
Mark-Simulacrum
commented
Jan 12, 2018
Shouldn't we add Hash and Default for this? |
shepmaster
commented
Jan 13, 2018
@Mark-Simulacrum can you expand on what you mean by "for this"? Do you mean "since we are adding the |
Mark-Simulacrum
commented
Jan 13, 2018
Yes, that's what I meant. Sorry for not being clear. |
Interesting. If there is any unwritten 'gold standard' for wrapper type deriving in libcore, then perhaps it is apparent by looking at #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]// PartialOrd and Ord specialized hereWhat do you think? EDIT: PartialOrd and Ord are specialized here. |
Mark-Simulacrum
commented
Jan 13, 2018
Option also implements Default, which we should derive as well; Option needs to implement it as an enum but this struct can derive it. |
shepmaster
commented
Jan 13, 2018
Actually, iterators shouldn't implement |
eddyb
commented
Jan 15, 2018
@shepmaster I wish we had a canonical thing to point to - but it's basically blocked on a lint. |
goffrie
commented
Jan 20, 2018
|
kennytm
commented
Jan 24, 2018
Review ping for you @BurntSushi! |
shepmaster
commented
Jan 24, 2018
Haha, I was thinking |
It seems like we probably want a @rfcbot fcp merge |
kennytm
commented
Jan 24, 2018
@BurntSushi I guess rfcbot doesn't recognize edits. |
BurntSushi
commented
Jan 24, 2018
@rfcbot fcp merge |
Team member @BurntSushi has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
shepmaster
commented
Feb 3, 2018
Ping for ticky boxes, @Kimundi ! |
emilyalbini
commented
Feb 12, 2018
@Kimundi there is a nice checkbox in #47379 (comment) waiting for you! |
da-x
commented
Feb 14, 2018
Hey @Kimundi can you please respond? |
rfcbot
commented
Feb 16, 2018
🔔 This is now entering its final comment period, as per the review above. 🔔 |
rfcbot
commented
Feb 16, 2018
🔔 This is now entering its final comment period, as per the review above. 🔔 |
1 similar comment
rfcbot
commented
Feb 16, 2018
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Kimundi
commented
Feb 20, 2018
Sorry! I'm really bad at staying on top of my github notifications, and I thought I had already checked this one at the last ping... |
sfackler
commented
Feb 20, 2018
@bors r+ |
bors
commented
Feb 20, 2018
📌 Commit 96157ef has been approved by |
kennytm
commented
Feb 21, 2018
@bors rollup |
Derive std::cmp::Reverse as Copy or Clone If the type parameter is Copy or Clone, then `Reverse` should be too.
If the type parameter is Copy or Clone, then
Reverseshould be too.