Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 537549d

Browse files
committed
Struct-like variant -> tuple-like variant.
1 parent d810839 commit 537549d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/librustc_yk_sections/emit_tir.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,8 @@ impl<'tcx> ToPack<ykpack::Statement> for (&ConvCx<'_, 'tcx, '_>, BasicBlock, &St
329329
}
330330
ykpack::Statement::Assign(lhs, rhs)
331331
},
332-
StatementKind::SetDiscriminant{ref place, ref variant_index} => {
333-
ykpack::Statement::SetDiscriminant{
334-
place: (*ccx, place).to_pack(),
335-
variant_index: variant_index.as_u32(),
336-
}
337-
},
332+
StatementKind::SetDiscriminant{ref place, ref variant_index} =>
333+
ykpack::Statement::SetDiscriminant((*ccx, place).to_pack(), variant_index.as_u32()),
338334
// StorageLive/Dead not useful to the tracer. Ignore them.
339335
StatementKind::StorageLive(..)
340336
| StatementKind::StorageDead(..) => ykpack::Statement::Nop,

0 commit comments

Comments
 (0)