Skip to content

Commit cdff918

Browse files
committed
Auto merge of #63670 - Dante-Broggi:patch-2, r=Centril
Size has a ::zero
2 parents a807902 + d64f06c commit cdff918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/interpret/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ impl<'tcx, Tag> ScalarMaybeUndef<Tag> {
530530
pub fn not_undef(self) -> InterpResult<'static, Scalar<Tag>> {
531531
match self {
532532
ScalarMaybeUndef::Scalar(scalar) => Ok(scalar),
533-
ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::from_bytes(0))),
533+
ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::ZERO)),
534534
}
535535
}
536536

0 commit comments

Comments
 (0)