Use unreachable_unchecked

This commit is contained in:
Aaron Kutch 2020-08-14 15:28:48 -05:00
parent 11ae780481
commit ffb386369b

View file

@ -57,9 +57,7 @@ mod asymmetric;
/// impossible to reach by Rust users, unless `compiler-builtins` public division functions or
/// `core/std::unchecked_div/rem` are directly used without a zero check in front.
fn zero_div_fn() -> ! {
// TODO: change this once the algorithms are verified
//unsafe {core::hint::unreachable_unchecked()}
::abort()
unsafe { core::hint::unreachable_unchecked() }
}
// The `B` extension on RISC-V determines if a CLZ assembly instruction exists