about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-08-19 05:12:58 +0000
committerbors <bors@rust-lang.org>2019-08-19 05:12:58 +0000
commitcdff9189556bb7de2b9a8a72344c9d8ec6099fcd (patch)
treea5fb754b62970227c2479a6cdb4646971575f719 /src
parenta807902dd6b4222179776c3f3c33da8dafdd4da1 (diff)
parentd64f06ce31a88c3689aead03632ce51957149a5c (diff)
downloadrust-cdff9189556bb7de2b9a8a72344c9d8ec6099fcd.tar.gz
rust-cdff9189556bb7de2b9a8a72344c9d8ec6099fcd.zip
Auto merge of #63670 - Dante-Broggi:patch-2, r=Centril
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)),
         }
     }