Make PlaceRef lifetimes of closure_span be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 18:07:33 -03:00
parent bd4dad4281
commit 46d85e519b
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -782,7 +782,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
fn closure_span(
&self,
def_id: DefId,
target_place: PlaceRef<'cx, 'tcx>,
target_place: PlaceRef<'tcx, 'tcx>,
places: &Vec<Operand<'tcx>>,
) -> Option<(Span, Option<GeneratorKind>, Span)> {
debug!(