-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Fix some unnecessary casts #118147
Fix some unnecessary casts #118147
Conversation
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
`x clippy compiler -Aclippy::all -Wclippy::unnecessary_cast --fix` with some manual review to ensure every fix is correct.
c9df3cb
to
c089a16
Compare
iirc there were problems on different architectures with these :/ |
@matthiaskrgr do you have a reference? I don't really see how any of those can cause problems on diff. arches... |
It's probably buried in some year-old pr, I could not find anything right now. May also be that the code has already changed in the meantime or clippy got better somehow , CI will make the final call I guess.. |
Okay, well, r=me with green CI then |
Correct, some "redundant" casts are necessary. I checked the source and dest types manually in the source and only included the actually redundant casts here. |
CI is partially green, good enough for me 😈 |
…ffleLapkin Fix some unnecessary casts `x clippy compiler -Aclippy::all -Wclippy::unnecessary_cast --fix` with some manual review to ensure every fix is correct.
…mpiler-errors Rollup of 6 pull requests Successful merges: - rust-lang#118012 (Add support for global allocation in smir) - rust-lang#118013 (Enable Rust to use the EHCont security feature of Windows) - rust-lang#118100 (Enable profiler in dist-powerpc64-linux) - rust-lang#118142 (Tighten up link attributes for llvm-wrapper bindings) - rust-lang#118147 (Fix some unnecessary casts) - rust-lang#118161 (Allow defining opaques in `check_coroutine_obligations`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#118147 - Nilstrieb:no-redundant-casts, r=WaffleLapkin Fix some unnecessary casts `x clippy compiler -Aclippy::all -Wclippy::unnecessary_cast --fix` with some manual review to ensure every fix is correct.
x clippy compiler -Aclippy::all -Wclippy::unnecessary_cast --fix
with some manual review to ensure every fix is correct.