File tree 1 file changed +3
-0
lines changed
compiler/rustc_borrowck/src
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>(
447
447
let output_facts = mbcx. polonius_output ;
448
448
Some ( Box :: new ( BodyWithBorrowckFacts {
449
449
body : body_owned,
450
+ promoted,
450
451
borrow_set,
451
452
region_inference_context : regioncx,
452
453
location_table : polonius_input. as_ref ( ) . map ( |_| location_table_owned) ,
@@ -470,6 +471,8 @@ fn do_mir_borrowck<'tcx>(
470
471
pub struct BodyWithBorrowckFacts < ' tcx > {
471
472
/// A mir body that contains region identifiers.
472
473
pub body : Body < ' tcx > ,
474
+ /// The mir bodies of promoteds.
475
+ pub promoted : IndexVec < Promoted , Body < ' tcx > > ,
473
476
/// The set of borrows occurring in `body` with data about them.
474
477
pub borrow_set : Rc < BorrowSet < ' tcx > > ,
475
478
/// Context generated during borrowck, intended to be passed to
You can’t perform that action at this time.
0 commit comments