rust/library/core/src/num
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
..
dec2flt explain why we can mutate the FPU control word 2023-08-14 16:10:56 +02:00
flt2dec Add shortcut for Grisu3 algorithm. 2023-04-25 11:34:57 +08:00
shells diagnostic items for legacy numeric constants 2024-02-18 12:08:16 -07:00
bignum.rs Rename integer log* methods to ilog* 2022-08-09 10:20:49 -07:00
diy_float.rs Fix assert in diy_float 2021-07-27 16:02:35 -04:00
error.rs Make {integer}::from_str_radix constant 2024-03-30 12:43:58 +00:00
f16.rs Add a Debug impl and some basic functions to f16 and f128 2024-04-11 15:31:10 -04:00
f32.rs step cfgs 2024-03-20 08:49:13 -04:00
f64.rs step cfgs 2024-03-20 08:49:13 -04:00
f128.rs Add a Debug impl and some basic functions to f16 and f128 2024-04-11 15:31:10 -04:00
fmt.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
int_log10.rs Have a function for the log(0) panic, rather than copy-pasting the string constant 2023-02-10 12:50:17 -08:00
int_macros.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
mod.rs Replace version placeholders for 1.79 2024-05-01 21:01:51 -04:00
nonzero.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
overflow_panic.rs reword panic comments and add spaces to unlikely branches 2023-11-28 08:34:55 -08:00
saturating.rs Bump to latest beta 2023-10-08 19:57:43 -04:00
uint_macros.rs Rollup merge of #124701 - scottmcm:unchecked_sub_docs, r=Nilstrieb 2024-05-04 12:37:24 +02:00
wrapping.rs [clippy] Use symbols intended for arithmetic_side_effects 2023-09-01 10:28:55 +02:00