Skip to content
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: Consider field attributes when converting from tuple to named struct and the opposite #17993

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

ChayimFriedman2
Copy link
Contributor

Fixes #17983.

I tried to use the SourceChangeBuilder::make_mut() API, but it duplicated the attribute...

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 28, 2024
@Veykril
Copy link
Member

Veykril commented Aug 29, 2024

Fwiw, all of the attribute and comment loss should be trivially fixed by switching the token tree trivia model in the future
@bors r+

@bors
Copy link
Collaborator

bors commented Aug 29, 2024

📌 Commit 1fc6cbc has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 29, 2024

⌛ Testing commit 1fc6cbc with merge d5a424f...

@bors
Copy link
Collaborator

bors commented Aug 29, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing d5a424f to master...

@bors bors merged commit d5a424f into rust-lang:master Aug 29, 2024
11 checks passed
@lnicola lnicola changed the title Consider field attributes when converting from tuple to named struct and the opposite fix: Consider field attributes when converting from tuple to named struct and the opposite Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert to tuple struct action discards field attributes
4 participants