From 71cc1226c7ad1ee1491473c850811f8aa638936b Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sun, 27 Nov 2016 13:46:34 -0800 Subject: [PATCH] s/init/zero/ --- src/interpreter/terminator/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/terminator/intrinsics.rs b/src/interpreter/terminator/intrinsics.rs index 64562ccb917..16cdffe24ce 100644 --- a/src/interpreter/terminator/intrinsics.rs +++ b/src/interpreter/terminator/intrinsics.rs @@ -221,7 +221,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { "forget" => {} "init" => { - let size = self.type_size(dest_ty)?.expect("cannot init unsized value");; + let size = self.type_size(dest_ty)?.expect("cannot zero unsized value");; let init = |this: &mut Self, val: Option| { let zero_val = match val { Some(Value::ByRef(ptr)) => {