mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Use a local variable.
This commit is contained in:
parent
66b3585145
commit
3b6af9a451
@ -85,7 +85,7 @@ fn add_move_for_packed_drop<'tcx>(
|
||||
|
||||
let source_info = terminator.source_info;
|
||||
let ty = place.ty(body, tcx).ty;
|
||||
let temp = patch.new_temp(ty, terminator.source_info.span);
|
||||
let temp = patch.new_temp(ty, source_info.span);
|
||||
|
||||
let storage_dead_block = patch.new_block(BasicBlockData {
|
||||
statements: vec![Statement { source_info, kind: StatementKind::StorageDead(temp) }],
|
||||
|
Loading…
Reference in New Issue
Block a user