mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
5f4f4fbb98
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.