Skip to content
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

impl Default, Copy, Clone for std::io::Sink and Empty #86744

Merged
merged 1 commit into from
Aug 8, 2021

Commits on Jun 30, 2021

  1. impl Default, Copy, Clone for std::io::Sink and Empty

    The omission of Sink: Default is causing me a slight inconvenience in
    a test harness.  There seems little reason for this and Empty not to
    be Clone and Copy too.
    
    I have made all three of these insta-stable, because:
    
    AIUI Copycan only be derived, and I was not able to find any
    examples of how to unstably derive it.  I think it is probably not
    possible.
    
    I hunted through the git history for precedent and found
    
      79b8ad8
      Implement `Copy` for `IoSlice`
      rust-lang#69403
    
    which was also insta-stable.
    
    Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
    ijackson committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    a7e88e0 View commit details
    Browse the repository at this point in the history