Skip to content
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

Derive `Clone` along with `Copy` on Rust 1.21 #1085

Merged
merged 1 commit into from Oct 24, 2017

Conversation

Projects
None yet
4 participants
@pepyakin
Copy link
Contributor

pepyakin commented Oct 14, 2017

Fixes #934

r? @fitzgen or @emilio

@highfive

This comment has been minimized.

Copy link
Collaborator

highfive commented Oct 14, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@pepyakin pepyakin force-pushed the pepyakin:builtin-clone-impls branch from e337ceb to e3e0db1 Oct 14, 2017

@fitzgen
Copy link
Member

fitzgen left a comment

Thanks @pepyakin 👍

derives.push("Clone");
} else {
needs_clone_impl = true;
if used_template_params.is_some() {

This comment has been minimized.

@fitzgen

fitzgen Oct 17, 2017

Member

Flatten the nested if/else?

if ctx.options().rust_features().builtin_clone_impls() || used_template_params.is_some() {
    ...
} else {
    ...
}

@pepyakin pepyakin force-pushed the pepyakin:builtin-clone-impls branch from e3e0db1 to 1886fe2 Oct 23, 2017

@pepyakin

This comment has been minimized.

Copy link
Contributor Author

pepyakin commented Oct 23, 2017

@fitzgen done!

@fitzgen

This comment has been minimized.

Copy link
Member

fitzgen commented Oct 23, 2017

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 23, 2017

📌 Commit 1886fe2 has been approved by fitzgen

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 23, 2017

🔒 Merge conflict

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 23, 2017

☔️ The latest upstream changes (presumably #1084) made this pull request unmergeable. Please resolve the merge conflicts.

@pepyakin pepyakin force-pushed the pepyakin:builtin-clone-impls branch from 1886fe2 to f0e97bb Oct 23, 2017

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 24, 2017

☔️ The latest upstream changes (presumably #1094) made this pull request unmergeable. Please resolve the merge conflicts.

@pepyakin pepyakin force-pushed the pepyakin:builtin-clone-impls branch from f0e97bb to a84e263 Oct 24, 2017

@pepyakin pepyakin force-pushed the pepyakin:builtin-clone-impls branch from a84e263 to 2e7d997 Oct 24, 2017

@pepyakin

This comment has been minimized.

Copy link
Contributor Author

pepyakin commented Oct 24, 2017

@bors-servo r=fitzgen

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 24, 2017

📌 Commit 2e7d997 has been approved by fitzgen

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 24, 2017

⌛️ Testing commit 2e7d997 with merge c30a805...

bors-servo added a commit that referenced this pull request Oct 24, 2017

Auto merge of #1085 - pepyakin:builtin-clone-impls, r=fitzgen
Derive `Clone` along with `Copy` on Rust 1.21

Fixes #934

r? @fitzgen or @emilio
@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented Oct 24, 2017

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing c30a805 to master...

@bors-servo bors-servo merged commit 2e7d997 into rust-lang:master Oct 24, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details

@pepyakin pepyakin deleted the pepyakin:builtin-clone-impls branch Oct 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.