Skip to content

Commit 0e44a38

Browse files
committed
Return promoteds in BodyWithBorrowckFacts
1 parent 388071a commit 0e44a38

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+3
-0
lines changed

compiler/rustc_borrowck/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ fn do_mir_borrowck<'tcx>(
447447
let output_facts = mbcx.polonius_output;
448448
Some(Box::new(BodyWithBorrowckFacts {
449449
body: body_owned,
450+
promoted,
450451
borrow_set,
451452
region_inference_context: regioncx,
452453
location_table: polonius_input.as_ref().map(|_| location_table_owned),
@@ -470,6 +471,8 @@ fn do_mir_borrowck<'tcx>(
470471
pub struct BodyWithBorrowckFacts<'tcx> {
471472
/// A mir body that contains region identifiers.
472473
pub body: Body<'tcx>,
474+
/// The mir bodies of promoteds.
475+
pub promoted: IndexVec<Promoted, Body<'tcx>>,
473476
/// The set of borrows occurring in `body` with data about them.
474477
pub borrow_set: Rc<BorrowSet<'tcx>>,
475478
/// Context generated during borrowck, intended to be passed to

0 commit comments

Comments
 (0)