about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-08 01:52:32 +0000
committerbors <bors@rust-lang.org>2021-08-08 01:52:32 +0000
commit835dce569d8fbad7566942b6ccf8c62ac3900791 (patch)
treee29f12591f270353ab070b31eb4abf7d9b73084c /compiler/rustc_query_impl/src
parent798446fe0612dd83a151e99c201b87dd649d4eb3 (diff)
parenta7e88e0dad45d12ec9b9a176614f38c329a23946 (diff)
downloadrust-835dce569d8fbad7566942b6ccf8c62ac3900791.tar.gz
rust-835dce569d8fbad7566942b6ccf8c62ac3900791.zip
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.
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions