Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use 0: for named-fields debug of tuples and tuple variants#32

Open
ijackson wants to merge 4 commits intomagiclen:master from
ijackson:named-fields-tuple-debug
Open

Use 0: for named-fields debug of tuples and tuple variants #32
ijackson wants to merge 4 commits intomagiclen:master from
ijackson:named-fields-tuple-debug

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.

ijackson added 4 commits August 1, 2024 12:14
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /