-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Derive missing trait implementations for cursor #23607
Conversation
I commented on your issue to say I was working on it but whatever... I made a different Debug implementation so I'll create my own PR. EDIT: My pr is #23609. Your implementation would display the inner buffer too if I'm not wrong and that's not what we would want in here. |
@@ -31,6 +31,7 @@ use slice; | |||
/// over `T` itself. Instead, specific implementations are provided for various | |||
/// in-memory buffer types like `Vec<u8>` and `&[u8]`. | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
#[derive(Copy, Clone, Debug, Eq, PartialEq)] |
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.
Can this leave out Copy
for now? I've generally tried to avoid that wherever possible. I also think that it's fine to remove Eq
/PartialEq
as they should be pretty easy to add back in the future, and I think that comparing I/O objects for equality is a pretty rare operation.
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.
Why remove Copy?
Updated. |
- Successful merges: rust-lang#22954, rust-lang#23119, rust-lang#23509, rust-lang#23561, rust-lang#23590, rust-lang#23607, rust-lang#23608, rust-lang#23618, rust-lang#23622, rust-lang#23639, rust-lang#23641 - Failed merges: rust-lang#23401
Closes #23599
r? @alexcrichton