Skip to content

Commit 40dea87

Browse files
committed
wip
1 parent 3474314 commit 40dea87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_mir/transform/inline.rs

+5
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ impl Inliner<'tcx> {
403403
TerminatorKind::Call { args, destination: Some(destination), cleanup, .. } => {
404404
debug!("inlined {:?} into {:?}", callsite.callee, self.source);
405405

406+
// FIXME(eddyb) replace with a "first inlined local/scope" index,
407+
// as they are contiguous.
406408
let mut local_map = IndexVec::with_capacity(callee_body.local_decls.len());
407409
let mut scope_map = IndexVec::with_capacity(callee_body.source_scopes.len());
408410

@@ -645,9 +647,12 @@ fn type_size_of<'tcx>(
645647
* stuff.
646648
*/
647649
struct Integrator<'a, 'tcx> {
650+
// FIXME(eddyb) replace this with a `RangeFrom<BasicBlock>`.
648651
block_idx: usize,
649652
args: &'a [Local],
653+
// FIXME(eddyb) replace this with a `RangeFrom<Local>`.
650654
local_map: IndexVec<Local, Local>,
655+
// FIXME(eddyb) replace this with a `RangeFrom<SourceScope>`.
651656
scope_map: IndexVec<SourceScope, SourceScope>,
652657
destination: Place<'tcx>,
653658
return_block: BasicBlock,

0 commit comments

Comments
 (0)