Skip to content

Commit 1f22bfb

Browse files
committed
Auto merge of rust-lang#102795 - lukas-code:constify-is-aligned-via-align-offset, r=oli-obk
Constify `is_aligned` via `align_offset` Alternative to rust-lang#102753 Make `align_offset` work in const eval (and not always return `usize::MAX`) and then use that to constify `is_aligned{_to}`. Tracking Issue: rust-lang#104203
2 parents 77aeac1 + f4e02ce commit 1f22bfb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/shims/intrinsics/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
368368
}
369369

370370
// Other
371-
"exact_div" => {
372-
let [num, denom] = check_arg_count(args)?;
373-
this.exact_div(&this.read_immediate(num)?, &this.read_immediate(denom)?, dest)?;
374-
}
375-
376371
"breakpoint" => {
377372
let [] = check_arg_count(args)?;
378373
// normally this would raise a SIGTRAP, which aborts if no debugger is connected

0 commit comments

Comments
 (0)