diff options
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/operand.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/operand.rs b/compiler/rustc_codegen_ssa/src/mir/operand.rs index e8fab804524..2e655ae94cc 100644 --- a/compiler/rustc_codegen_ssa/src/mir/operand.rs +++ b/compiler/rustc_codegen_ssa/src/mir/operand.rs @@ -118,8 +118,8 @@ impl<'a, 'tcx, V: CodegenObject> OperandRef<'tcx, V> { } pub fn deref<Cx: LayoutTypeMethods<'tcx>>(self, cx: &Cx) -> PlaceRef<'tcx, V> { - if self.layout.ty.is_box() && !self.layout.abi.is_scalar() { - bug!("dereferencing non-scalar box ({:?}) in codegen", self.layout.ty); + if self.layout.ty.is_box() { + bug!("dereferencing {:?} in codegen", self.layout.ty); } let projected_ty = self |
