File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
compiler/rustc_borrowck/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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>(
470471pub 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
You can’t perform that action at this time.
0 commit comments