Uh oh!
There was an error while loading. Please reload this page.
Add explanations for E0503 and E0508. - #34133
Conversation
rust-highfive
commented
Jun 7, 2016
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
There was a problem hiding this comment.
This line might mislead users. Please replace it with:
let _sum = value + 1;GuillaumeGomez
commented
Jun 7, 2016
A few things to correct and it should be good! |
m-decoster
commented
Jun 7, 2016
@GuillaumeGomez I have implemented your feedback. |
There was a problem hiding this comment.
"A value was used after it was mutably borrowed."
GuillaumeGomez
commented
Jun 7, 2016
A few other updates to be done. After they're done, please squash your commits. You should have one commit for each error explanation. |
m-decoster
commented
Jun 7, 2016
@GuillaumeGomez The commits should be squashed and ready to go. Do you prefer a separate pull request for both error explanations or is this fine as is? |
GuillaumeGomez
commented
Jun 7, 2016
No no, one PR is fine. Let me take a last look. |
There was a problem hiding this comment.
You didn't annotate this example. Please do it.
GuillaumeGomez
commented
Jun 7, 2016
Just one last little change and it should be good! |
3a9aaba to
5439806CompareGuillaumeGomez
commented
Jun 8, 2016
All good. Thanks @m-decoster! @bors: r+ rollup |
bors
commented
Jun 8, 2016
📌 Commit 5439806 has been approved by |
Add explanations for E0503 and E0508. (cannot use `..` because it was mutably borrowed, cannot move out of type `..`, a non-copy fixed-size array) Part of rust-lang#32777.
Add explanations for E0503 and E0508. (cannot use `..` because it was mutably borrowed, cannot move out of type `..`, a non-copy fixed-size array) Part of rust-lang#32777.
bors
commented
Jun 10, 2016
⌛ Testing commit 5439806 with merge aa3adea... |
bors
commented
Jun 10, 2016
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
Jun 11, 2016
⌛ Testing commit 5439806 with merge df206f3... |
bors
commented
Jun 11, 2016
💔 Test failed - auto-linux-64-opt-rustbuild |
| fn main() { | ||
| let mut value = 3; | ||
| // We clone `value`, creating a copy. | ||
| let value_cloned = value.cloned(); |
There was a problem hiding this comment.
Oh damn, clone and not cloned!
There was a problem hiding this comment.
I can't believe I mistyped that and then missed it and then forgot to run tests. Anyway, how exactly do I solve this now that you've already told bors to rollup? Do I just create a new commit and squash it again? @GuillaumeGomez
m-decoster
commented
Jun 12, 2016
Should compile now. |
GuillaumeGomez
commented
Jun 12, 2016
@bors: r+ rollup |
bors
commented
Jun 12, 2016
📌 Commit e06fbe1 has been approved by |
bors
commented
Jun 12, 2016
Add explanations for E0503 and E0508. (cannot use `..` because it was mutably borrowed, cannot move out of type `..`, a non-copy fixed-size array) Part of #32777.
(cannot use
..because it was mutably borrowed, cannot move out of type.., a non-copy fixed-size array)Part of #32777.