Fixme for closure origin when reborrow is implemented

This commit is contained in:
Aman Arora 2021-01-29 16:25:01 -05:00
parent fadf03ee1b
commit 0f4bab246b

View file

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