Skip to content

Commit bc06465

Browse files
committed
Use unreachable_unchecked
1 parent 0e6d75d commit bc06465

File tree

1 file changed

+1
-3
lines changed
  • src/int/specialized_div_rem

1 file changed

+1
-3
lines changed

src/int/specialized_div_rem/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ mod asymmetric;
5757
/// impossible to reach by Rust users, unless `compiler-builtins` public division functions or
5858
/// `core/std::unchecked_div/rem` are directly used without a zero check in front.
5959
fn zero_div_fn() -> ! {
60-
// TODO: change this once the algorithms are verified
61-
//unsafe {core::hint::unreachable_unchecked()}
62-
::abort()
60+
unsafe { core::hint::unreachable_unchecked() }
6361
}
6462

6563
// The `B` extension on RISC-V determines if a CLZ assembly instruction exists

0 commit comments

Comments
 (0)