diff options
| author | bors <bors@rust-lang.org> | 2020-12-19 21:57:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-19 21:57:38 +0000 |
| commit | c1d58436614ad522e4db9113ac56d90ec4a95448 (patch) | |
| tree | a68f989c8df3bf269f2e85aa485dd80d94426d04 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 1f5bc176b0e54a8e464704adcd7e571700207fe9 (diff) | |
| parent | 0523eeb8a38dbd6e6e6fd9283b27609fbf38859c (diff) | |
| download | rust-c1d58436614ad522e4db9113ac56d90ec4a95448.tar.gz rust-c1d58436614ad522e4db9113ac56d90ec4a95448.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
