s/init/zero/
This commit is contained in:
parent
fd02285788
commit
71cc1226c7
@ -221,7 +221,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||||||
"forget" => {}
|
"forget" => {}
|
||||||
|
|
||||||
"init" => {
|
"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 init = |this: &mut Self, val: Option<Value>| {
|
||||||
let zero_val = match val {
|
let zero_val = match val {
|
||||||
Some(Value::ByRef(ptr)) => {
|
Some(Value::ByRef(ptr)) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user