about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDante-Broggi <34220985+Dante-Broggi@users.noreply.github.com>2019-08-17 16:09:49 -0400
committerDante-Broggi <34220985+Dante-Broggi@users.noreply.github.com>2019-08-17 16:09:49 -0400
commitd64f06ce31a88c3689aead03632ce51957149a5c (patch)
tree4158866d70751f977b487876304262c344feeaa4 /src
parentd65e272a9fe3e61aa5f229c5358e35a909435575 (diff)
downloadrust-d64f06ce31a88c3689aead03632ce51957149a5c.tar.gz
rust-d64f06ce31a88c3689aead03632ce51957149a5c.zip
size has a zero
Diffstat (limited to 'src')
-rw-r--r--src/librustc/mir/interpret/value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs
index 5381d469724..3da5a65c379 100644
--- a/src/librustc/mir/interpret/value.rs
+++ b/src/librustc/mir/interpret/value.rs
@@ -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)),
         }
     }