commit
09cadcbb62
@ -1 +1 @@
|
||||
c4be230b4a30eb74e3a3908455731ebc2f731d3d
|
||||
6cfa773583bb5123e630668f5bfe466716225546
|
||||
|
@ -518,7 +518,7 @@ fn call_intrinsic(
|
||||
)))
|
||||
}
|
||||
if intrinsic_name == "assert_zero_valid"
|
||||
&& !layout.might_permit_raw_init(this, /*zero:*/ true).unwrap()
|
||||
&& !layout.might_permit_raw_init(this, /*zero:*/ true)
|
||||
{
|
||||
throw_machine_stop!(TerminationInfo::Abort(format!(
|
||||
"aborted execution: attempted to zero-initialize type `{}`, which is invalid",
|
||||
@ -526,7 +526,7 @@ fn call_intrinsic(
|
||||
)))
|
||||
}
|
||||
if intrinsic_name == "assert_uninit_valid"
|
||||
&& !layout.might_permit_raw_init(this, /*zero:*/ false).unwrap()
|
||||
&& !layout.might_permit_raw_init(this, /*zero:*/ false)
|
||||
{
|
||||
throw_machine_stop!(TerminationInfo::Abort(format!(
|
||||
"aborted execution: attempted to leave type `{}` uninitialized, which is invalid",
|
||||
|
Loading…
Reference in New Issue
Block a user