rust/library/core/src/num
Matthias Krüger e0499e4583
Rollup merge of #131923 - ranger-ross:impl-copy-hash-interrorkind, r=tgross35
Derive `Copy` and `Hash` for `IntErrorKind`

This PR derives `Copy` and `Hash` for `IntErrorKind` to make it easier to work with. (see #131826)

I think an argument could be made to also derive `PartialOrd` + `Ord` as well given that other error kinds in the std like [`io::ErrorKind`](https://doc.rust-lang.org/src/std/io/error.rs.html#212-428) do this. Granted these seem much less useful for errors.

Fixes https://github.com/rust-lang/rust/issues/131826
2025-07-02 19:29:33 +02:00
..
dec2flt move test-float-parse tool into src/tools dir 2025-06-03 11:05:51 +03:00
flt2dec float: Add f16 parsing and printing 2025-05-18 16:43:13 +00:00
shells diagnostic items for legacy numeric constants 2024-02-18 12:08:16 -07:00
bignum.rs Rollup merge of #134797 - spastorino:ergonomic-ref-counting-1, r=nikomatsakis 2025-03-07 19:15:33 +01:00
diy_float.rs Refactor diy_float 2025-03-31 20:15:41 +02:00
error.rs Derive Copy+Hash for IntErrorKind 2024-10-19 19:39:35 +09:00
f16.rs De-duplicate f16 & f128 doctest attributes 2025-06-08 14:51:13 +02:00
f32.rs change tests to use fixed constants to let them pass with miri 2025-06-05 16:22:13 +02:00
f64.rs Ignore float_minimum_maximum doctests on i586 2025-07-01 10:55:49 -07:00
f128.rs De-duplicate f16 & f128 doctest attributes 2025-06-08 14:51:13 +02:00
fmt.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
int_log10.rs core: add #![warn(unreachable_pub)] 2025-01-20 18:35:32 +01:00
int_macros.rs integer docs: remove extraneous text 2025-06-20 20:38:29 +02:00
int_sqrt.rs core: add #![warn(unreachable_pub)] 2025-01-20 18:35:32 +01:00
libm.rs Initial implementation of core_float_math 2025-05-13 22:08:18 +00:00
mod.rs integer docs: remove extraneous text 2025-06-20 20:38:29 +02:00
niche_types.rs Make NonZero<char> possible 2025-06-07 11:40:49 +00:00
nonzero.rs Make NonZero<char> possible 2025-06-07 11:40:49 +00:00
overflow_panic.rs core: add #![warn(unreachable_pub)] 2025-01-20 18:35:32 +01:00
saturating.rs integer docs: remove extraneous text 2025-06-20 20:38:29 +02:00
uint_macros.rs integer docs: remove extraneous text 2025-06-20 20:38:29 +02:00
wrapping.rs core: add #![warn(unreachable_pub)] 2025-01-20 18:35:32 +01:00