Skip to content

Commit 6200f5c

Browse files
committed
Make PlaceRef lifetimes of uninitialized_error_reported be both 'tcx
1 parent f54e863 commit 6200f5c

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ crate struct MirBorrowckCtxt<'cx, 'tcx> {
472472
BTreeMap<Vec<MoveOutIndex>, (PlaceRef<'tcx, 'tcx>, DiagnosticBuilder<'cx>)>,
473473
/// This field keeps track of errors reported in the checking of uninitialized variables,
474474
/// so that we don't report seemingly duplicate errors.
475-
uninitialized_error_reported: FxHashSet<PlaceRef<'cx, 'tcx>>,
475+
uninitialized_error_reported: FxHashSet<PlaceRef<'tcx, 'tcx>>,
476476
/// Errors to be reported buffer
477477
errors_buffer: Vec<Diagnostic>,
478478
/// This field keeps track of all the local variables that are declared mut and are mutated.

0 commit comments

Comments
 (0)