Skip to content

Commit 761077e

Browse files
committed
fmt
1 parent aef8a93 commit 761077e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_const_eval/src/interpret/operand.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
403403
// codegen does as good as we can (see `extract_field` in `rustc_codegen_ssa/src/mir/operand.rs`).
404404
let field_val: Immediate<_> = match (*base, base.layout.abi) {
405405
// the field contains no information
406-
_ if field_layout.is_zst() => {
407-
Scalar::ZST.into()
408-
}
406+
_ if field_layout.is_zst() => Scalar::ZST.into(),
409407
// the field covers the entire type
410408
_ if field_layout.size == base.layout.size => {
411409
assert!(match (base.layout.abi, field_layout.abi) {

0 commit comments

Comments
 (0)