Skip to content

Commit 28a6dc4

Browse files
committed
Rename some lifetimes.
Give them the names used in most places.
1 parent 1aafeb2 commit 28a6dc4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_borrowck/src/nll.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ pub(super) fn dump_nll_mir<'tcx>(
301301

302302
#[allow(rustc::diagnostic_outside_of_impl)]
303303
#[allow(rustc::untranslatable_diagnostic)]
304-
pub(super) fn dump_annotation<'tcx, 'cx>(
305-
infcx: &'cx BorrowckInferCtxt<'tcx>,
304+
pub(super) fn dump_annotation<'tcx, 'infcx>(
305+
infcx: &'infcx BorrowckInferCtxt<'tcx>,
306306
body: &Body<'tcx>,
307307
regioncx: &RegionInferenceContext<'tcx>,
308308
closure_region_requirements: &Option<ClosureRegionRequirements<'tcx>>,
309309
opaque_type_values: &FxIndexMap<LocalDefId, OpaqueHiddenType<'tcx>>,
310-
diags: &mut crate::diags::BorrowckDiags<'cx, 'tcx>,
310+
diags: &mut crate::diags::BorrowckDiags<'infcx, 'tcx>,
311311
) {
312312
let tcx = infcx.tcx;
313313
let base_def_id = tcx.typeck_root_def_id(body.source.def_id());

compiler/rustc_borrowck/src/universal_regions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ impl<'tcx> UniversalRegions<'tcx> {
423423
}
424424
}
425425

426-
struct UniversalRegionsBuilder<'cx, 'tcx> {
427-
infcx: &'cx BorrowckInferCtxt<'tcx>,
426+
struct UniversalRegionsBuilder<'infcx, 'tcx> {
427+
infcx: &'infcx BorrowckInferCtxt<'tcx>,
428428
mir_def: LocalDefId,
429429
param_env: ty::ParamEnv<'tcx>,
430430
}

0 commit comments

Comments
 (0)