about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-21 22:41:42 -0700
committerbors <bors@rust-lang.org>2014-03-21 22:41:42 -0700
commit993dee4f1421cceddbb434e04826d1359a9c8512 (patch)
tree1e67ee0bd5835f34c04e6f7118e2d4f4f0ea8f7a /src/libstd
parent069cede3057ca517ffec2042d7f97dbb93e71a54 (diff)
parente1ca02ec029014f3982b43635b28a125e3dd8d90 (diff)
downloadrust-993dee4f1421cceddbb434e04826d1359a9c8512.tar.gz
rust-993dee4f1421cceddbb434e04826d1359a9c8512.zip
auto merge of #13051 : alexcrichton/rust/issue-13047, r=thestinger
It's useful for structures which use deriving(Clone), even though it's
implicitly copyable.

Closes #13047
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/process.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs
index 6afd1bbb27d..de7b26d5ff4 100644
--- a/src/libstd/io/process.rs
+++ b/src/libstd/io/process.rs
@@ -170,7 +170,7 @@ pub enum StdioContainer {
 
 /// Describes the result of a process after it has terminated.
 /// Note that Windows have no signals, so the result is usually ExitStatus.
-#[deriving(Eq)]
+#[deriving(Eq, TotalEq, Clone)]
 pub enum ProcessExit {
     /// Normal termination with an exit status.
     ExitStatus(int),
@@ -460,6 +460,7 @@ mod tests {
         assert!(p.is_ok());
         let mut p = p.unwrap();
         assert!(p.wait().matches_exit_status(1));
+        drop(p.wait().clone());
     })
 
     #[cfg(unix, not(target_os="android"))]