Skip to content

Commit 1e6126f

Browse files
committed
Rename some lifetimes.
Give them the names used in most places.
1 parent f9064ac commit 1e6126f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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
@@ -422,8 +422,8 @@ impl<'tcx> UniversalRegions<'tcx> {
422422
}
423423
}
424424

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

compiler/rustc_mir_transform/src/validate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,9 @@ pub fn validate_types<'tcx>(
543543
type_checker.failures
544544
}
545545

546-
struct TypeChecker<'a, 'tcx> {
547-
body: &'a Body<'tcx>,
548-
caller_body: &'a Body<'tcx>,
546+
struct TypeChecker<'mir, 'tcx> {
547+
body: &'mir Body<'tcx>,
548+
caller_body: &'mir Body<'tcx>,
549549
tcx: TyCtxt<'tcx>,
550550
param_env: ParamEnv<'tcx>,
551551
mir_phase: MirPhase,

0 commit comments

Comments
 (0)