File tree 1 file changed +5
-0
lines changed
src/librustc_mir/transform
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,8 @@ impl Inliner<'tcx> {
403
403
TerminatorKind :: Call { args, destination : Some ( destination) , cleanup, .. } => {
404
404
debug ! ( "inlined {:?} into {:?}" , callsite. callee, self . source) ;
405
405
406
+ // FIXME(eddyb) replace with a "first inlined local/scope" index,
407
+ // as they are contiguous.
406
408
let mut local_map = IndexVec :: with_capacity ( callee_body. local_decls . len ( ) ) ;
407
409
let mut scope_map = IndexVec :: with_capacity ( callee_body. source_scopes . len ( ) ) ;
408
410
@@ -645,9 +647,12 @@ fn type_size_of<'tcx>(
645
647
* stuff.
646
648
*/
647
649
struct Integrator < ' a , ' tcx > {
650
+ // FIXME(eddyb) replace this with a `RangeFrom<BasicBlock>`.
648
651
block_idx : usize ,
649
652
args : & ' a [ Local ] ,
653
+ // FIXME(eddyb) replace this with a `RangeFrom<Local>`.
650
654
local_map : IndexVec < Local , Local > ,
655
+ // FIXME(eddyb) replace this with a `RangeFrom<SourceScope>`.
651
656
scope_map : IndexVec < SourceScope , SourceScope > ,
652
657
destination : Place < ' tcx > ,
653
658
return_block : BasicBlock ,
You can’t perform that action at this time.
0 commit comments