]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #86744 - ijackson:sink-default, r=dtolnay
authorbors <bors@rust-lang.org>
Sun, 8 Aug 2021 01:52:32 +0000 (01:52 +0000)
committerbors <bors@rust-lang.org>
Sun, 8 Aug 2021 01:52:32 +0000 (01:52 +0000)
commit835dce569d8fbad7566942b6ccf8c62ac3900791
treee29f12591f270353ab070b31eb4abf7d9b73084c
parent798446fe0612dd83a151e99c201b87dd649d4eb3
parenta7e88e0dad45d12ec9b9a176614f38c329a23946
Auto merge of #86744 - ijackson:sink-default, r=dtolnay

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 `Copy` can 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

79b8ad84c84481a43704213cd0948d2ba0ea63b4
> Implement `Copy` for `IoSlice`
> https://github.com/rust-lang/rust/pull/69403

which was also insta-stable.