diff --git a/src/librustc_mir/borrow_check/diagnostics/region_errors.rs b/src/librustc_mir/borrow_check/diagnostics/region_errors.rs index f1d9ba09d4774..66f0330fe9b6c 100644 --- a/src/librustc_mir/borrow_check/diagnostics/region_errors.rs +++ b/src/librustc_mir/borrow_check/diagnostics/region_errors.rs @@ -66,7 +66,7 @@ pub struct ErrorReportingCtx<'a, 'b, 'tcx> { pub(super) body: &'b Body<'tcx>, /// User variable names for MIR locals (where applicable). - local_names: &'b IndexVec>, + pub(super) local_names: &'b IndexVec>, /// Any upvars for the MIR body we have kept track of during borrow checking. pub(super) upvars: &'b [Upvar],