Skip to content

Resolve unnecessary_transmutes lints #895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
Merged

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Apr 29, 2025

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.

@tgross35 tgross35 force-pushed the lint-fixes branch 3 times, most recently from 918ca38 to 690d108 Compare April 29, 2025 21:22
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.
@tgross35 tgross35 enabled auto-merge (rebase) April 29, 2025 21:37
@tgross35 tgross35 merged commit 99b4c19 into rust-lang:master Apr 29, 2025
35 checks passed
@tgross35 tgross35 deleted the lint-fixes branch April 29, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant