Skip to content

Commit 0f4bab2

Browse files
committed
Fixme for closure origin when reborrow is implemented
1 parent fadf03e commit 0f4bab2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/rustc_typeck/src/check/upvar.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
184184
let origin = if self.tcx.features().capture_disjoint_fields {
185185
origin
186186
} else {
187-
// FIXME(project-rfc-2229#26): Once rust-lang#80092 is merged, we should restrict the
188-
// precision of origin as well. Otherwise, this will cause issues when project-rfc-2229#26
189-
// is fixed as we might see Index projections in the origin, which we can't print because
190-
// we don't store enough information.
187+
// FIXME(project-rfc-2229#31): Once the changes to support reborrowing are
188+
// made, make sure we are selecting and restricting
189+
// the origin correctly.
191190
(origin.0, Place { projections: vec![], ..origin.1 })
192191
};
193192

0 commit comments

Comments
 (0)