We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a807902 + d64f06c commit cdff918Copy full SHA for cdff918
src/librustc/mir/interpret/value.rs
@@ -530,7 +530,7 @@ impl<'tcx, Tag> ScalarMaybeUndef<Tag> {
530
pub fn not_undef(self) -> InterpResult<'static, Scalar<Tag>> {
531
match self {
532
ScalarMaybeUndef::Scalar(scalar) => Ok(scalar),
533
- ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::from_bytes(0))),
+ ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::ZERO)),
534
}
535
536
0 commit comments