Replace assume
with assert_unchecked
(Rust 1.81)
#1345
Labels
good first issue
Good for newcomers
low priority
Issues that we would like to address at some point in the future
Rust 1.81 stabilized
std::hint::assert_unchecked
, which is what we want ourassume
to be. Ourassume
is a slightly different implementation (that just callsunreachable_unchecked
in thefalse
case), andassert_unchecked
is implemented more directly with regards to LLVM IR generation. They are largely the same, butassert_unchecked
may be optimized slightly better, and Rust is standardizing around this new interface, so we should switch to it.The text was updated successfully, but these errors were encountered: