-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Report cannot move errors in promoted MIR #71587
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
074c5c6
to
3d0c303
Compare
r? @nikomatsakis for review or re-assignment. |
src/librustc_mir/borrow_check/mod.rs
Outdated
polonius_output: None, | ||
}; | ||
promoted_mbcx.report_move_errors(move_errors); | ||
errors_buffer = mem::take(&mut promoted_mbcx.errors_buffer) |
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.
Do we really want to overwrite errors_buffer
each time, and not (e.g.) something like
errors_buffer.extend(promoted_mbcx.errors_buffer.drain(..));
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.
Yes, errors_buffer
is being moved into promoted_mbcx
3d0c303
to
34eb2c1
Compare
@bors r+ |
📌 Commit 34eb2c1 has been approved by |
… r=nikomatsakis Report cannot move errors in promoted MIR Closes rust-lang#70934
Rollup of 10 pull requests Successful merges: - rust-lang#71587 (Report cannot move errors in promoted MIR) - rust-lang#71711 (Updates to some ignored tests) - rust-lang#71845 (Add const examples) - rust-lang#71878 (Add remove_current_as_list to LinkedList's CursorMut) - rust-lang#71881 (Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode) - rust-lang#71883 (add a missing "at" in a comment) - rust-lang#71891 (¬∃x. ¬y => ∀x. y) - rust-lang#71892 (Update btree_map::VacantEntry::insert docs to actually call insert) - rust-lang#71902 (Suggest to add missing feature when using gated const features) - rust-lang#71904 (fix typo in function name) Failed merges: r? @ghost
Closes #70934