Skip to content

Commit

Permalink
Use unreachable_unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKutch committed Aug 14, 2020
1 parent 0e6d75d commit bc06465
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/int/specialized_div_rem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc06465

Please sign in to comment.