Skip to content

Commit aa832c1

Browse files
committed
Auto merge of #1555 - lzutao:upstream-assume-const, r=RalfJung
Remove assume intrinsic from EvalContextExt Waiting for rust-lang/rust#76973 merged.
2 parents 2f84bfc + 56ea94d commit aa832c1

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
78a089487b5f6d5e4205ac4500410b442857bced
1+
1ec980d225fff2346a1a631a7ffc88b37e9e18af

src/shims/intrinsics.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
478478
}
479479

480480
// Other
481-
"assume" => {
482-
let &[cond] = check_arg_count(args)?;
483-
let cond = this.read_scalar(cond)?.check_init()?.to_bool()?;
484-
if !cond {
485-
throw_ub_format!("`assume` intrinsic called with `false`");
486-
}
487-
}
488-
489481
"exact_div" => {
490482
let &[num, denom] = check_arg_count(args)?;
491483
this.exact_div(this.read_immediate(num)?, this.read_immediate(denom)?, dest)?;

0 commit comments

Comments
 (0)