Make PlaceRef lifetimes of add_moved_or_invoked_closure_note be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 17:12:31 -03:00
parent c6f1244719
commit 6f23650457
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -51,7 +51,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
pub(super) fn add_moved_or_invoked_closure_note(
&self,
location: Location,
place: PlaceRef<'cx, 'tcx>,
place: PlaceRef<'tcx, 'tcx>,
diag: &mut DiagnosticBuilder<'_>,
) {
debug!("add_moved_or_invoked_closure_note: location={:?} place={:?}", location, place);