Skip to content

Commit 6c52275

Browse files
spastorinoPaul Daniel Faria
authored andcommitted
borrow block_data instead of moving it
1 parent c0e6a15 commit 6c52275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/nll/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl<'a, 'gcx: 'tcx, 'tcx: 'a> Dfs<'a, 'gcx, 'tcx> {
166166

167167
changed |= to_region.add_point(p);
168168

169-
let block_data = self.mir[p.block];
169+
let block_data = &self.mir[p.block];
170170
let successor_points = if p.statement_index < block_data.statements.len() {
171171
vec![Location {
172172
statement_index: p.statement_index + 1,

0 commit comments

Comments
 (0)