Suggest deriving traits if possible#86943
Conversation
|
(rust-highfive has picked a reviewer for you, use r? to override) |
|
r? @estebank for review or re-assignment |
|
☔ The latest upstream changes (presumably #85263) made this pull request unmergeable. Please resolve the merge conflicts. |
estebank
left a comment
There was a problem hiding this comment.
Sorry for the delay, I had the review in pending and never "finished" the review.
I have some nitpicks. Do you think you could deal with them?
|
Thanks for the great suggestions! |
|
@bors r+ |
|
📌 Commit d552e65e2a4e065cf98ac4703c3833f90ab5d6b3 has been approved by |
|
⌛ Testing commit d552e65e2a4e065cf98ac4703c3833f90ab5d6b3 with merge b3d10b04488f013cd3ea7d01a6a3de215883a68e... |
|
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
estebank
left a comment
There was a problem hiding this comment.
You will need to rebase on top of a recent master. I also left a nitpick.
There was a problem hiding this comment.
This has quite a bit of rightwards drift. Could we instead use let x = if let ... else { return; } to early return the closure and make the contents look more linear?
This only applies to builtin derives as I don't think there is a clean way to get the available derives in typeck. Closes rust-lang#85851
d552e65 to
50e5f90
Compare
|
@bors r+ |
|
📌 Commit 50e5f90 has been approved by |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (434cb43): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This only applies to builtin derives as I don't think there is a
clean way to get the available derives in typeck.
Closes #85851