rust/library/core
Matthias Krüger 5f4f4fbb98
Rollup merge of #124701 - scottmcm:unchecked_sub_docs, r=Nilstrieb
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.
2024-05-04 12:37:24 +02:00
..
benches Rollup merge of #115913 - FedericoStra:checked_ilog, r=the8472 2024-04-22 20:25:58 +02:00
src Rollup merge of #124701 - scottmcm:unchecked_sub_docs, r=Nilstrieb 2024-05-04 12:37:24 +02:00
tests Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
Cargo.toml Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00