From 761077e19e4f59e4e68f39ec875b3f3799bf8a4f Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 10 May 2022 14:38:00 +0200 Subject: [PATCH] fmt --- compiler/rustc_const_eval/src/interpret/operand.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index 1b32d8873678..62a95fa57cfa 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -403,9 +403,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { // codegen does as good as we can (see `extract_field` in `rustc_codegen_ssa/src/mir/operand.rs`). let field_val: Immediate<_> = match (*base, base.layout.abi) { // the field contains no information - _ if field_layout.is_zst() => { - Scalar::ZST.into() - } + _ if field_layout.is_zst() => Scalar::ZST.into(), // the field covers the entire type _ if field_layout.size == base.layout.size => { assert!(match (base.layout.abi, field_layout.abi) {