-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Update closure capture error logging for disjoint captures for disjoint captures #84358
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update closure capture error logging for disjoint captures for disjoint captures #84358
Conversation
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
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.
This looks pretty good! Let a few nits, but r=me once fixed.
compiler/rustc_mir/src/borrow_check/diagnostics/region_errors.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_mir/src/borrow_check/diagnostics/explain_borrow.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_mir/src/borrow_check/diagnostics/explain_borrow.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_mir/src/borrow_check/diagnostics/explain_borrow.rs
Outdated
Show resolved
Hide resolved
@bors delegate+ |
✌️ @ChrisPardy can now approve this pull request |
Closes #76005 aswell |
@bors r=nikomatsakis |
📌 Commit c3da321e55dce55d2081abc9ada4bf56837a4cf8 has been approved by |
⌛ Testing commit c3da321e55dce55d2081abc9ada4bf56837a4cf8 with merge 2c5be70da85cb08c621b6cd48f9b23e508020f97... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
c3da321
to
d19c468
Compare
@bors r=nikomatsakis |
📌 Commit d19c468 has been approved by |
⌛ Testing commit d19c468 with merge a134ad75469a2d429c6383baabcada8f44913c69... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@bors r=nikomatsakis |
📌 Commit 404cc33 has been approved by |
…_rebased, r=nikomatsakis Update closure capture error logging for disjoint captures for disjoint captures Improved error logging when `#![feature(capture_disjoint_fields)]` is used. Closes rust-lang/project-rfc-2229#8 Closes rust-lang/project-rfc-2229#36 Closes rust-lang/project-rfc-2229#39 Closes rust-lang#76005
⌛ Testing commit 404cc33 with merge 67721110c86aa2bc57588bd21b19401c78228f9c... |
@bors retry yield |
Rollup of 5 pull requests Successful merges: - rust-lang#84358 (Update closure capture error logging for disjoint captures for disjoint captures) - rust-lang#84392 (Make AssertKind::fmt_assert_args public) - rust-lang#84752 (Fix debuginfo for generators) - rust-lang#84763 (shrink doctree::Module) - rust-lang#84821 (Fix nit in rustc_session::options) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Improved error logging when
#![feature(capture_disjoint_fields)]
is used.Closes rust-lang/project-rfc-2229#8
Closes rust-lang/project-rfc-2229#36
Closes rust-lang/project-rfc-2229#39
Closes #76005