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
This commit is contained in:
commit
993dee4f14
1 changed files with 2 additions and 1 deletions
|
@ -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"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue