mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-19 15:49:24 +00:00
Docs: suggest `uN::checked_sub` instead of check-then-unchecked As of #124114 it's exactly the same in codegen, so might as well not use `unsafe`. Note that this is only for *unsigned*, since the overflow conditions for `iN::checked_sub` are more complicated.