-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add detailed error explanation for E0505 #33475
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @arielb1 (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. |
@@ -390,6 +390,85 @@ fn foo(a: &mut i32) { | |||
``` | |||
"##, | |||
|
|||
E0505: r##" | |||
You tried to move out of a value which was borrowed before. |
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.
Could you rewrite this sentence in "a neutral way" please? Something like "A value was moved out while it was still borrowed".
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.
Sure, I found almost this sentence description for E0507, should I change that as well ?
Thanks a lot for your work! Just a few nits to fix and we're good to merge. (Don't forget your commits once done please.) |
Thank you for review, do you want to squash changes in one commit, right ? |
Yes, at final, except if you do something else than adding this error code explanation (which I don't recommend), we expect only one commit. |
☔ The latest upstream changes (presumably #33487) made this pull request unmergeable. Please resolve the merge conflicts. |
53338ec
to
d0147ec
Compare
Thanks! |
@bors: r=guillaumegomez rollup |
📌 Commit d0147ec has been approved by |
☔ The latest upstream changes (presumably #33556) made this pull request unmergeable. Please resolve the merge conflicts. |
@billyevans: Is it ready to get merged? |
@GuillaumeGomez Yes, I merged it with upstream recently. I hope it will be without conflicts. |
It seems it's good. Thanks! r=me @steveklabnik |
@bors: r=guillaumegomez rollup |
📌 Commit bf09a9e has been approved by |
Add detailed error explanation for E0505 Part of rust-lang#32777
Add detailed error explanation for E0505 Part of rust-lang#32777
Part of #32777