Make PlaceRef lifetimes of uninitialized_error_reported be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 13:09:32 -03:00
parent f54e8634e1
commit 6200f5c362
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -472,7 +472,7 @@ fn do_mir_borrowck<'a, 'tcx>(
BTreeMap<Vec<MoveOutIndex>, (PlaceRef<'tcx, 'tcx>, DiagnosticBuilder<'cx>)>,
/// This field keeps track of errors reported in the checking of uninitialized variables,
/// so that we don't report seemingly duplicate errors.
uninitialized_error_reported: FxHashSet<PlaceRef<'cx, 'tcx>>,
uninitialized_error_reported: FxHashSet<PlaceRef<'tcx, 'tcx>>,
/// Errors to be reported buffer
errors_buffer: Vec<Diagnostic>,
/// This field keeps track of all the local variables that are declared mut and are mutated.