Skip to content

Commit 993dee4

Browse files
committed
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
2 parents 069cede + e1ca02e commit 993dee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/io/process.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ pub enum StdioContainer {
170170

171171
/// Describes the result of a process after it has terminated.
172172
/// Note that Windows have no signals, so the result is usually ExitStatus.
173-
#[deriving(Eq)]
173+
#[deriving(Eq, TotalEq, Clone)]
174174
pub enum ProcessExit {
175175
/// Normal termination with an exit status.
176176
ExitStatus(int),
@@ -460,6 +460,7 @@ mod tests {
460460
assert!(p.is_ok());
461461
let mut p = p.unwrap();
462462
assert!(p.wait().matches_exit_status(1));
463+
drop(p.wait().clone());
463464
})
464465

465466
#[cfg(unix, not(target_os="android"))]

0 commit comments

Comments
 (0)