about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-08-27 11:26:50 +0200
committerGitHub <noreply@github.com>2025-08-27 11:26:50 +0200
commitc0cd29ed662b65d32ee61a700faacf40c92ab4b0 (patch)
tree1e91d2815163a8b853314d21d65ee8394b78defd /compiler/rustc_attr_parsing/src
parentf2eb47a81b2bae99e020f2f6e130e6891313e541 (diff)
parent698db13cd068b1807780f97344bb764efc87703f (diff)
downloadrust-c0cd29ed662b65d32ee61a700faacf40c92ab4b0.tar.gz
rust-c0cd29ed662b65d32ee61a700faacf40c92ab4b0.zip
Rollup merge of #145625 - karolzwolak:f16-use-expr-instead-literal, r=beetrees,tgross35
improve float to_degrees/to_radians rounding comments and impl

This PR makes `to_degrees()` and `to_radians()` float functions more consistent between each other and improves comments around their precision and rounding.

* revise comments explaining why we are using literal or expression
* add unspecified precision comments as we don't guarantee precision
* use expression in `f128::to_degrees()`
* make `f64::to_degrees()` impl consistent with other functions

r? `@tgross35`
Diffstat (limited to 'compiler/rustc_attr_parsing/src')
0 files changed, 0 insertions, 0 deletions