Skip to content

std: Implement Clone for ProcessExit #13051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2014
Merged

Conversation

alexcrichton
Copy link
Member

It's useful for structures which use deriving(Clone), even though it's
implicitly copyable.

Closes #13047

@thestinger
Copy link
Contributor

@alexcrichton: Can you add TotalEq here too?

It's useful for structures which use deriving(Clone, TotalEq), even though it's
implicitly copyable.

Closes rust-lang#13047
@alexcrichton
Copy link
Member Author

Added TotalEq

bors added a commit that referenced this pull request Mar 22, 2014
It's useful for structures which use deriving(Clone), even though it's
implicitly copyable.

Closes #13047
@bors bors closed this Mar 22, 2014
@bors bors merged commit e1ca02e into rust-lang:master Mar 22, 2014
@alexcrichton alexcrichton deleted the issue-13047 branch March 22, 2014 15:57
JohnTitor pushed a commit to JohnTitor/rust that referenced this pull request Sep 6, 2022
…m-variant, r=jonas-schievink

fix: Only move comments when extracting a struct from an enum variant

Motivating example:

```rs
#[derive(Debug, thiserror::Error)]
enum Error {
    /// Some explanation for this error
    #[error("message")]
    $0Woops {
        code: u32
    }
}
```
now becomes
```rs
/// Some explanation for this error
#[derive(Debug, thiserror::Error)]
struct Woops{
    code: u32
}

#[derive(Debug, thiserror::Error)]
enum Error {
    #[error("message")]
    Woops(Woops)
}
```
(the `thiserror::Error` derive being copied and the struct formatting aren't ideal, though those are issues for another day)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

std::io::process::ProcessExit does not implement Clone
3 participants