Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5a3f7cd

Browse files
committed
move FlowAtLocation to be a dataflow abstraction
We can now use it in e.g. drop elaboration if we want to.
1 parent 1572311 commit 5a3f7cd

File tree

8 files changed

+378
-415
lines changed

8 files changed

+378
-415
lines changed

src/librustc_mir/borrow_check/error_reporting.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ use rustc_data_structures::indexed_vec::Idx;
1616

1717
use super::{MirBorrowckCtxt, Context};
1818
use super::{InitializationRequiringAction, PrefixSet};
19-
use super::flow::FlowInProgress;
20-
use dataflow::{BorrowData, MovingOutStatements};
19+
use dataflow::{BorrowData, FlowAtLocation, MovingOutStatements};
2120
use dataflow::move_paths::MovePathIndex;
2221
use util::borrowck_errors::{BorrowckErrors, Origin};
2322

@@ -28,7 +27,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
2827
desired_action: InitializationRequiringAction,
2928
(place, span): (&Place<'tcx>, Span),
3029
mpi: MovePathIndex,
31-
curr_move_out: &FlowInProgress<MovingOutStatements<'_, 'gcx, 'tcx>>,
30+
curr_move_out: &FlowAtLocation<MovingOutStatements<'_, 'gcx, 'tcx>>,
3231
) {
3332
let mois = self.move_data.path_map[mpi]
3433
.iter()

src/librustc_mir/borrow_check/flow.rs

Lines changed: 0 additions & 335 deletions
This file was deleted.

0 commit comments

Comments
 (0)