about summary refs log tree commit diff
path: root/library/compiler-builtins/libm/src/math/pow.rs
AgeCommit message (Collapse)AuthorLines
2025-07-30Simplify the configuration for no-panicTrevor Gross-1/+1
Currently, attributes for `no-panic` are gated behind both the `test` config and `assert_no_panic`, because `no-panic` is a dev dependency (so only available with test configuration). However, we only emit `assert_no_panic` when the test config is also set anyway, so there isn't any need to gate on both. Replace gates on `all(test, assert_no_panic)` with only `assert_no_panic`. This is simpler, and also has the benefit that attempting to check for panics without `--test` errors.
2025-04-29Resolve `unnecessary_transmutes` lintsTrevor Gross-9/+2
These appeared in a later nightly. In compiler-builtins we can apply the suggestion, but in `libm` we need to ignore them since `fx::from_bits` is not `const` at the MSRV. `clippy::uninlined_format_args` also seems to have gotten stricter, so fix those here.
2025-04-19Run `cargo fmt` on all projectsTrevor Gross-12/+36
Apply the same formatting rules to both `libm` and `compiler-builtins`.
2025-04-19libm: Flatten the `libm/libm` directoryTrevor Gross-0/+607