-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Remove integer suffixes from Show
implementation
#20792
Conversation
They just clutter the output, reading ``` [0i32, 1i32, 2i32, 3i32] ``` is really hard.
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
These suffixes were part of the design fwiw. (I'm not expressing an opinion on whether they should be removed.) |
It's what's written in the design, but it didn't have much discussion. We also don't distinguish between printing This also negatively affects tests: tbu-/collect-rs@18069a4#diff-8a5ac7b178f2c29d23992135dce5db83R969 |
FWIW, I'm hoping to post an RFC shortly establishing clearer conventions for |
It's a pretty clear win in readability, so this could be merged without an RFC (?). Still need to fix |
cc rust-lang/rfcs#565, we may wish to hold off on a decision here until a decision is reached on that RFC |
FWIW, the RFC suggests making the change here. I do agree we should wait until that discussion is finished, though, to avoid unnecessary churn. |
r? @alexcrichton Part of #20792 that wasn't done in your commit.
They just clutter the output, reading
is really hard.