about summary refs log tree commit diff
path: root/library/std/src/num.rs
AgeCommit message (Collapse)AuthorLines
2025-05-29Make `std/src/num` mirror `core/src/num`Trevor Gross-28/+0
The float modules in `std` are currently top-level but for `core`, they are nested within the `num` directory and referenced by `#[path = ...]`. For consistency, adjust `std` to use the same structure as `core`. Also change the `f16` and `f128` gates from outer attributes to inner attributes like `core` has.
2025-01-26Move std::num unit tests to integration testsbjorn3-3/+0
2025-01-26Move std float unit tests to integration testsbjorn3-25/+0
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-07-29Reformat `use` declarations.Nicholas Nethercote-11/+6
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-05-01Replace version placeholders for 1.79Mark Rousskov-1/+1
2024-04-22Stabilize generic `NonZero`.Markus Reiter-1/+2
2024-01-27Switch `NonZero` alias direction.Markus Reiter-0/+10
2024-01-11removed nonfunctioning benchmarkNicholas Thompson-3/+0
It could also have been fixed by removing a semicolon instead.
2023-10-03Bump version placeholdersMark Rousskov-1/+1
2023-09-03Stabilize the Saturating type (saturating_int_impl, gh-87920)Michael Watzko-1/+1
Also stabilizes saturating_int_assign_impl, gh-92354. And also make pub fns const where the underlying saturating_* fns became const in the meantime since the Saturating type was created.
2021-08-10Add Saturating type (based on Wrapping type)Michael Watzko-0/+2
2021-06-22postpone stabilizaton by one releaseEthan Brierley-1/+1
2021-06-14run tidyEthan Brierley-1/+1
2021-06-14stabilize `int_error_matching`Ethan Brierley-6/+1
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-247/+6
Also doing fmt inplace as requested.
2020-07-27mv std libs to library/mark-0/+297