Skip to content

Commit bd33796

Browse files
committed
Use a local variable.
1 parent f243bef commit bd33796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/add_moves_for_packed_drops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn add_move_for_packed_drop<'tcx>(
8585

8686
let source_info = terminator.source_info;
8787
let ty = place.ty(body, tcx).ty;
88-
let temp = patch.new_temp(ty, terminator.source_info.span);
88+
let temp = patch.new_temp(ty, source_info.span);
8989

9090
let storage_dead_block = patch.new_block(BasicBlockData {
9191
statements: vec![Statement { source_info, kind: StatementKind::StorageDead(temp) }],

0 commit comments

Comments
 (0)