Skip to content

Conversation

@ijackson
Copy link
Contributor

@ijackson ijackson commented Aug 1, 2024

Change the output when the user requests debug printing of a tuple struct in named fields syntax.

Previously we output _0: (for example), which isn't really right: Rust permits 0: , and the field is actually called 0.

This is a behavioural change, but I don't think Debug output is regarded as semver-relevant, so this shouldn't be a considered breaking change.

field_name is the real field name and doesn't depend on the attribute.
Separating this makes things less confusing.
Change the output when the user requests debug printing of a tuple
struct in named fields syntax.

Previously we output `_0: ` (for example), which isn't really right:
Rust permits `0: `, and the field is actually called `0`.

This is a behavioural change, but I don't think Debug output is
regarded as semver-relevant, so this shouldn't be a breaking change.
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