Skip to content

Commit 9ea831d

Browse files
committed
More lifetime renaming.
1 parent 1e6126f commit 9ea831d

File tree

1 file changed

+10
-10
lines changed
  • compiler/rustc_mir_dataflow/src/move_paths

1 file changed

+10
-10
lines changed

compiler/rustc_mir_dataflow/src/move_paths/builder.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ use super::{
1414
MoveOutIndex, MovePath, MovePathIndex, MovePathLookup,
1515
};
1616

17-
struct MoveDataBuilder<'a, 'tcx, F> {
18-
body: &'a Body<'tcx>,
17+
struct MoveDataBuilder<'mir, 'tcx, F> {
18+
body: &'mir Body<'tcx>,
1919
tcx: TyCtxt<'tcx>,
2020
param_env: ty::ParamEnv<'tcx>,
2121
data: MoveData<'tcx>,
2222
filter: F,
2323
}
2424

25-
impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
25+
impl<'mir, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'mir, 'tcx, F> {
2626
fn new(
27-
body: &'a Body<'tcx>,
27+
body: &'mir Body<'tcx>,
2828
tcx: TyCtxt<'tcx>,
2929
param_env: ty::ParamEnv<'tcx>,
3030
filter: F,
@@ -107,7 +107,7 @@ enum MovePathResult {
107107
Error,
108108
}
109109

110-
impl<'b, 'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> Gatherer<'b, 'a, 'tcx, F> {
110+
impl<'a, 'mir, 'tcx, F: Fn(Ty<'tcx>) -> bool> Gatherer<'a, 'mir, 'tcx, F> {
111111
/// This creates a MovePath for a given place, returning an `MovePathError`
112112
/// if that place can't be moved from.
113113
///
@@ -287,7 +287,7 @@ impl<'b, 'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> Gatherer<'b, 'a, 'tcx, F> {
287287
}
288288
}
289289

290-
impl<'a, 'tcx, F> MoveDataBuilder<'a, 'tcx, F> {
290+
impl<'mir, 'tcx, F> MoveDataBuilder<'mir, 'tcx, F> {
291291
fn finalize(self) -> MoveData<'tcx> {
292292
debug!("{}", {
293293
debug!("moves for {:?}:", self.body.span);
@@ -328,7 +328,7 @@ pub(super) fn gather_moves<'tcx>(
328328
builder.finalize()
329329
}
330330

331-
impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
331+
impl<'mir, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'mir, 'tcx, F> {
332332
fn gather_args(&mut self) {
333333
for arg in self.body.args_iter() {
334334
if let Some(path) = self.data.rev_lookup.find_local(arg) {
@@ -356,12 +356,12 @@ impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
356356
}
357357
}
358358

359-
struct Gatherer<'b, 'a, 'tcx, F> {
360-
builder: &'b mut MoveDataBuilder<'a, 'tcx, F>,
359+
struct Gatherer<'a, 'mir, 'tcx, F> {
360+
builder: &'a mut MoveDataBuilder<'mir, 'tcx, F>,
361361
loc: Location,
362362
}
363363

364-
impl<'b, 'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> Gatherer<'b, 'a, 'tcx, F> {
364+
impl<'a, 'mir, 'tcx, F: Fn(Ty<'tcx>) -> bool> Gatherer<'a, 'mir, 'tcx, F> {
365365
fn gather_statement(&mut self, stmt: &Statement<'tcx>) {
366366
match &stmt.kind {
367367
StatementKind::Assign(box (place, Rvalue::CopyForDeref(reffed))) => {

0 commit comments

Comments
 (0)