Skip to content

Commit 606b9cb

Browse files
committed
Rename some lifetimes.
Giving them more typical names.
1 parent 072bf48 commit 606b9cb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: compiler/rustc_borrowck/src/type_check/relate_tys.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
5858
}
5959
}
6060

61-
struct NllTypeRelating<'me, 'bccx, 'tcx> {
62-
type_checker: &'me mut TypeChecker<'bccx, 'tcx>,
61+
struct NllTypeRelating<'a, 'b, 'tcx> {
62+
type_checker: &'a mut TypeChecker<'b, 'tcx>,
6363

6464
/// Where (and why) is this relation taking place?
6565
locations: Locations,
@@ -82,9 +82,9 @@ struct NllTypeRelating<'me, 'bccx, 'tcx> {
8282
ambient_variance_info: ty::VarianceDiagInfo<TyCtxt<'tcx>>,
8383
}
8484

85-
impl<'me, 'bccx, 'tcx> NllTypeRelating<'me, 'bccx, 'tcx> {
85+
impl<'a, 'b, 'tcx> NllTypeRelating<'a, 'b, 'tcx> {
8686
fn new(
87-
type_checker: &'me mut TypeChecker<'bccx, 'tcx>,
87+
type_checker: &'a mut TypeChecker<'b, 'tcx>,
8888
locations: Locations,
8989
category: ConstraintCategory<'tcx>,
9090
universe_info: UniverseInfo<'tcx>,
@@ -309,7 +309,7 @@ impl<'me, 'bccx, 'tcx> NllTypeRelating<'me, 'bccx, 'tcx> {
309309
}
310310
}
311311

312-
impl<'bccx, 'tcx> TypeRelation<TyCtxt<'tcx>> for NllTypeRelating<'_, 'bccx, 'tcx> {
312+
impl<'b, 'tcx> TypeRelation<TyCtxt<'tcx>> for NllTypeRelating<'_, 'b, 'tcx> {
313313
fn cx(&self) -> TyCtxt<'tcx> {
314314
self.type_checker.infcx.tcx
315315
}
@@ -520,7 +520,7 @@ impl<'bccx, 'tcx> TypeRelation<TyCtxt<'tcx>> for NllTypeRelating<'_, 'bccx, 'tcx
520520
}
521521
}
522522

523-
impl<'bccx, 'tcx> PredicateEmittingRelation<InferCtxt<'tcx>> for NllTypeRelating<'_, 'bccx, 'tcx> {
523+
impl<'b, 'tcx> PredicateEmittingRelation<InferCtxt<'tcx>> for NllTypeRelating<'_, 'b, 'tcx> {
524524
fn span(&self) -> Span {
525525
self.locations.span(self.type_checker.body)
526526
}

Diff for: compiler/rustc_mir_dataflow/src/elaborate_drops.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ pub trait DropElaborator<'a, 'tcx>: fmt::Debug {
155155
}
156156

157157
#[derive(Debug)]
158-
struct DropCtxt<'l, 'b, 'tcx, D>
158+
struct DropCtxt<'a, 'b, 'tcx, D>
159159
where
160160
D: DropElaborator<'b, 'tcx>,
161161
{
162-
elaborator: &'l mut D,
162+
elaborator: &'a mut D,
163163

164164
source_info: SourceInfo,
165165

@@ -192,7 +192,7 @@ pub fn elaborate_drop<'b, 'tcx, D>(
192192
DropCtxt { elaborator, source_info, place, path, succ, unwind }.elaborate_drop(bb)
193193
}
194194

195-
impl<'l, 'b, 'tcx, D> DropCtxt<'l, 'b, 'tcx, D>
195+
impl<'a, 'b, 'tcx, D> DropCtxt<'a, 'b, 'tcx, D>
196196
where
197197
D: DropElaborator<'b, 'tcx>,
198198
'tcx: 'b,

0 commit comments

Comments
 (0)