Skip to content

Commit 35b6444

Browse files
committed
rustup
1 parent d4a76a9 commit 35b6444

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c4be230b4a30eb74e3a3908455731ebc2f731d3d
1+
6cfa773583bb5123e630668f5bfe466716225546

src/shims/intrinsics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -518,15 +518,15 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
518518
)))
519519
}
520520
if intrinsic_name == "assert_zero_valid"
521-
&& !layout.might_permit_raw_init(this, /*zero:*/ true).unwrap()
521+
&& !layout.might_permit_raw_init(this, /*zero:*/ true)
522522
{
523523
throw_machine_stop!(TerminationInfo::Abort(format!(
524524
"aborted execution: attempted to zero-initialize type `{}`, which is invalid",
525525
ty
526526
)))
527527
}
528528
if intrinsic_name == "assert_uninit_valid"
529-
&& !layout.might_permit_raw_init(this, /*zero:*/ false).unwrap()
529+
&& !layout.might_permit_raw_init(this, /*zero:*/ false)
530530
{
531531
throw_machine_stop!(TerminationInfo::Abort(format!(
532532
"aborted execution: attempted to leave type `{}` uninitialized, which is invalid",

0 commit comments

Comments
 (0)