diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-21 16:54:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 16:54:01 +0200 |
| commit | a5c16a5381cd71c4d27b32857d04d70345b12de4 (patch) | |
| tree | 81b934c48e05a55fe7a28400bc36e6267fd67699 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 4b695f7c4e1a02d160fe7e159abd0f87027c0fcf (diff) | |
| parent | 03146471b58be8a0f9133064ea503252e60f7466 (diff) | |
| download | rust-a5c16a5381cd71c4d27b32857d04d70345b12de4.tar.gz rust-a5c16a5381cd71c4d27b32857d04d70345b12de4.zip | |
Rollup merge of #100556 - Alex-Velez:patch-1, r=scottmcm
Clamp Function for f32 and f64 I thought the clamp function could use a little improvement for readability purposes. The function now returns early in order to skip the extra bound checks. If there was a reason for binding `self` to `x` or if this code is incorrect, please correct me :)
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
