Skip to content

Commit 1d1ff36

Browse files
committed
fix codegen assertion
1 parent 6cb38fb commit 1d1ff36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/mir/operand.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ impl<'a, 'tcx, V: CodegenObject> OperandRef<'tcx, V> {
118118
}
119119

120120
pub fn deref<Cx: LayoutTypeMethods<'tcx>>(self, cx: &Cx) -> PlaceRef<'tcx, V> {
121-
if self.layout.ty.is_box() && !self.layout.abi.is_scalar() {
122-
bug!("dereferencing non-scalar box ({:?}) in codegen", self.layout.ty);
121+
if self.layout.ty.is_box() {
122+
bug!("dereferencing {:?} in codegen", self.layout.ty);
123123
}
124124

125125
let projected_ty = self

0 commit comments

Comments
 (0)