diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-05 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-07 08:11:49 +0200 |
| commit | 39d9c1cb1fd00c4deab6f3ef2a69886c36670d4e (patch) | |
| tree | 42579ce8645f7891a58a6b557d1e237eeaba5e2f /compiler/rustc_borrowck/src/diagnostics | |
| parent | 2446b17745517170aee5707cc75ef3661f365f23 (diff) | |
| download | rust-39d9c1cb1fd00c4deab6f3ef2a69886c36670d4e.tar.gz rust-39d9c1cb1fd00c4deab6f3ef2a69886c36670d4e.zip | |
Move `predecessors` from Body to BasicBlocks
Diffstat (limited to 'compiler/rustc_borrowck/src/diagnostics')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs index 73c0bf16a1f..d2a54a646ec 100644 --- a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs @@ -1628,7 +1628,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { location: Location, ) -> impl Iterator<Item = Location> + Captures<'tcx> + 'a { if location.statement_index == 0 { - let predecessors = body.predecessors()[location.block].to_vec(); + let predecessors = body.basic_blocks.predecessors()[location.block].to_vec(); Either::Left(predecessors.into_iter().map(move |bb| body.terminator_loc(bb))) } else { Either::Right(std::iter::once(Location { |
