This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Print captures precisely in borrow checker #36
Comments
Search for FIXME(project-rfc_2229#36); https://oli-obk.github.io/fixmeh/ |
|
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
May 2, 2021
…_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
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
May 2, 2021
…_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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The borrow checker just prints the root variable when printing captures from within the context of the closure, we should update this to be print the captured path precisely.
Ideally, we do this once rust-lang/rust#80635 lands because it introduces a function to prints paths precisely.
The text was updated successfully, but these errors were encountered: