Replace Body::basic_blocks() with field access
This commit is contained in:
@@ -243,7 +243,7 @@ pub(super) fn gather_moves<'tcx>(
|
||||
|
||||
builder.gather_args();
|
||||
|
||||
for (bb, block) in body.basic_blocks().iter_enumerated() {
|
||||
for (bb, block) in body.basic_blocks.iter_enumerated() {
|
||||
for (i, stmt) in block.statements.iter().enumerate() {
|
||||
let source = Location { block: bb, statement_index: i };
|
||||
builder.gather_statement(source, stmt);
|
||||
|
||||
Reference in New Issue
Block a user