borrow block_data instead of moving it
This commit is contained in:
parent
c0e6a15130
commit
6c52275c2d
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ impl<'a, 'gcx: 'tcx, 'tcx: 'a> Dfs<'a, 'gcx, 'tcx> {
|
|||
|
||||
changed |= to_region.add_point(p);
|
||||
|
||||
let block_data = self.mir[p.block];
|
||||
let block_data = &self.mir[p.block];
|
||||
let successor_points = if p.statement_index < block_data.statements.len() {
|
||||
vec![Location {
|
||||
statement_index: p.statement_index + 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue