Skip to content

Commit

Permalink
Auto merge of #63670 - Dante-Broggi:patch-2, r=Centril
Browse files Browse the repository at this point in the history
Size has a ::zero
  • Loading branch information
bors committed Aug 19, 2019
2 parents a807902 + d64f06c commit cdff918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/interpret/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ impl<'tcx, Tag> ScalarMaybeUndef<Tag> {
pub fn not_undef(self) -> InterpResult<'static, Scalar<Tag>> {
match self {
ScalarMaybeUndef::Scalar(scalar) => Ok(scalar),
ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::from_bytes(0))),
ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::ZERO)),
}
}

Expand Down

0 comments on commit cdff918

Please sign in to comment.