We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65e272 commit d64f06cCopy full SHA for d64f06c
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