-
Notifications
You must be signed in to change notification settings - Fork 786
Derive Clone along with Copy on Rust 1.21
#1085
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
Conversation
e337ceb to
e3e0db1
Compare
fitzgen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pepyakin 👍
src/codegen/mod.rs
Outdated
| derives.push("Clone"); | ||
| } else { | ||
| needs_clone_impl = true; | ||
| if used_template_params.is_some() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flatten the nested if/else?
if ctx.options().rust_features().builtin_clone_impls() || used_template_params.is_some() {
...
} else {
...
}e3e0db1 to
1886fe2
Compare
|
@fitzgen done! |
|
@bors-servo r+ |
|
📌 Commit 1886fe2 has been approved by |
|
🔒 Merge conflict |
|
☔ The latest upstream changes (presumably #1084) made this pull request unmergeable. Please resolve the merge conflicts. |
1886fe2 to
f0e97bb
Compare
|
☔ The latest upstream changes (presumably #1094) made this pull request unmergeable. Please resolve the merge conflicts. |
f0e97bb to
a84e263
Compare
a84e263 to
2e7d997
Compare
|
@bors-servo r=fitzgen |
|
📌 Commit 2e7d997 has been approved by |
|
☀️ Test successful - status-travis |
Fixes #934
r? @fitzgen or @emilio