-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Make cannot move errors more consistent with other borrowck errors #61136
Conversation
☔ The latest upstream changes (presumably #61150) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
📌 Commit f7808215211a5a0e2102ea9cf1e299850650c147 has been approved by |
or rather, r=me once conflicts are resolved. |
* Show the place and type being moved * Give a special error for variables in match guard * Simplify search for overloaded deref * Search for overloaded index
f780821
to
8ffa408
Compare
@bors r=pnkfelix |
📌 Commit 8ffa408 has been approved by |
Make cannot move errors more consistent with other borrowck errors * Note the type of the place being moved in all cases. * Note the place being moved from. * Simplify the search for overloaded place operators * Extend the note for move from overloaded deref apply to all types. * Add a note for moves from overloaded index. * Special case moves for closure captures. r? @pnkfelix
☀️ Test successful - checks-travis, status-appveyor |
Tested on commit rust-lang/rust@021a503. Direct link to PR: <rust-lang/rust#61136> 💔 rls on windows: test-pass → test-fail (cc @Xanewok, @rust-lang/infra).
r? @pnkfelix