mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
borrow block_data instead of moving it
This commit is contained in:
committed by
Paul Daniel Faria
parent
c0e6a15130
commit
6c52275c2d
@@ -166,7 +166,7 @@ fn copy(
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user