Skip to content

Conversation

@samueltardieu
Copy link
Member

@samueltardieu samueltardieu commented Jun 6, 2025

missing_transmute_annotations will suggest naming the origin and destination types if they do not have explicit names already.

changelog: [missing_transmute_annotations]: suggest giving origin and destination types a name in order to ascribe the transmute call

Fixes #14984

@rustbot
Copy link
Collaborator

rustbot commented Jun 6, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 6, 2025
@samueltardieu
Copy link
Member Author

r? clippy

@rustbot rustbot assigned blyxyas and unassigned Alexendoo Jul 28, 2025
Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about this improvement? If the transmute argument is something like x, it doesn't make that much sense calling it "the origin type" and not just mentioning x

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Aug 18, 2025
@samueltardieu samueltardieu requested a review from blyxyas August 21, 2025 16:30
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Aug 21, 2025
@samueltardieu
Copy link
Member Author

What do you think about this improvement? If the transmute argument is something like x, it doesn't make that much sense calling it "the origin type" and not just mentioning x

Good idea. I've credited you in the commit message as well.

Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small stylistic change and this is ready for merge.

`missing_transmute_annotations` will suggest naming the origin and
destination types if they do not have explicit names already.

Co-authored-by: Alejandra González <[email protected]>
Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! ❤️

@blyxyas blyxyas added this pull request to the merge queue Aug 24, 2025
Merged via the queue into rust-lang:master with commit 1dee616 Aug 24, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 24, 2025
@samueltardieu samueltardieu deleted the issue-14984 branch August 25, 2025 19:24
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.

missing_transmute_annotations suggests impl Future which is not allowed

4 participants