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 @@ pub(super) fn borrow_spans(&self, use_span: Span, location: Location) -> UseSpan
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!(