about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-06-30 11:14:59 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-06-30 11:58:25 +0100
commita7e88e0dad45d12ec9b9a176614f38c329a23946 (patch)
treef745aca6cd7c9b368ef2f4a835e0d6fb3e0e22bf /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent7ede6e2a2359c1bb9032baffa4fdafe5633749e3 (diff)
downloadrust-a7e88e0dad45d12ec9b9a176614f38c329a23946.tar.gz
rust-a7e88e0dad45d12ec9b9a176614f38c329a23946.zip
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

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

which was also insta-stable.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions