Skip to content

Remove redundant casts - #1307

Closed
FranciscoTGouveia wants to merge 1 commit into
rust-lang:mainfrom
FranciscoTGouveia:remove-casts
Closed

Remove redundant casts#1307
FranciscoTGouveia wants to merge 1 commit into
rust-lang:mainfrom
FranciscoTGouveia:remove-casts

Conversation

@FranciscoTGouveia

Copy link
Copy Markdown

I believe these casts can be safely removed, as the source type is already the target type.

For reference, these changes were found by an optimizer developed as a research project.

CC @nunoplopes

@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Jul 27, 2026
@DanielEScherzer

DanielEScherzer commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

See #1238
Some of the casts are only redundant on linux machines and are needed on windows

@FranciscoTGouveia

Copy link
Copy Markdown
Author

Yes, after testing on another machine, I've just observed the issue.
That said, I do not think it's worthwhile to keep this PR open, so I will close it.
Apologies.

@rustbot rustbot removed the S-waiting-on-review Status: Waiting on review label Jul 28, 2026
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.

3 participants