rust/library/core
bors c1d5843661 Auto merge of #79473 - m-ou-se:clamp-in-core, r=m-ou-se
Move {f32,f64}::clamp to core.

`clamp` was recently stabilized (tracking issue: https://github.com/rust-lang/rust/issues/44095). But although `Ord::clamp` was added in `core` (because `Ord` is in `core`), the versions for the `f32` and `f64` primitives were added in `std` (together with `floor`, `sin`, etc.), not in `core` (together with `min`, `max`, `from_bits`, etc.).

This change moves them to `core`, such that `clamp` on floats is available in `no_std` programs as well.
2020-12-19 21:57:38 +00:00
..
benches Remove redundant 'static from library crates 2020-10-18 17:25:51 +02:00
src Auto merge of #79473 - m-ou-se:clamp-in-core, r=m-ou-se 2020-12-19 21:57:38 +00:00
tests write_slice(_cloned) 2020-12-15 12:21:33 -08:00
Cargo.toml