about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2022-01-07 20:21:00 -0800
committerGitHub <noreply@github.com>2022-01-07 20:21:00 -0800
commitd43c9ad5d333e0c2ad770b82d2372c6efb0f36e5 (patch)
treececc40b209299653c80f76582ec6ecdc044839b8 /compiler/rustc_codegen_llvm/src
parent0bd7e2ff2e054952d0b638c8198414cf35f8e621 (diff)
parentdd364ed226277a392f49f8fd41504a74319b482c (diff)
downloadrust-d43c9ad5d333e0c2ad770b82d2372c6efb0f36e5.tar.gz
rust-d43c9ad5d333e0c2ad770b82d2372c6efb0f36e5.zip
Rollup merge of #92600 - asquared31415:float-must-use, r=joshtriplett
Add some missing `#[must_use]` to some `f{32,64}` operations

This PR adds `#[must_use]` to the following methods:
 - `f32::recip`
 - `f32::max`
 - `f32::min`
 - `f32::maximum`
 - `f32::minimum`
 and their equivalents in `f64`.
 These methods all produce a new value without modifying the original and so are pointless to call without using the result.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions