s/init/zero/

This commit is contained in:
Scott Olson 2016-11-27 13:46:34 -08:00
parent fd02285788
commit 71cc1226c7

View File

@ -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<Value>| {
let zero_val = match val {
Some(Value::ByRef(ptr)) => {