-
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 unnecessary trailing whitespace from error messages #86197
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #86399) made this pull request unmergeable. Please resolve the merge conflicts. |
b8e0a1a
to
2228740
Compare
☔ The latest upstream changes (presumably #87003) made this pull request unmergeable. Please resolve the merge conflicts. |
2228740
to
9bc1c4d
Compare
☔ The latest upstream changes (presumably #87042) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @JohnTitor @FabianWolff: could you fix the merge conflicts? Once you've fixed them, you should be able to mark your PR as ready for review with @rustbot author |
This comment has been minimized.
This comment has been minimized.
9bc1c4d
to
df0dfd4
Compare
@rustbot ready |
☔ The latest upstream changes (presumably #87698) made this pull request unmergeable. Please resolve the merge conflicts. |
df0dfd4
to
ee300b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
@bors r+ rollup |
📌 Commit ee300b6 has been approved by |
…JohnTitor Remove unnecessary trailing whitespace from error messages Some error messages currently contain unnecessary trailing whitespace. There are some legitimate reasons for having trailing whitespace in the output, such as for uniform indentation of possibly-empty input lines, but the whitespace I have addressed here occurs in a line used only for spacing, and I see no reason why that should have trailing whitespace (spacing lines inserted in other places also don't have trailing whitespace). I have also removed a superfluous call to `buffer.putc()`, which has no effect because the same character is already placed there by `draw_col_separator()`. Use `git diff --ignore-space-at-eol` to see my changes; otherwise the diff is quite large due to the whitespace removed from expected outputs in `src/test/ui/`.
Failed in rollup: #87741 (comment) |
This comment has been minimized.
This comment has been minimized.
ee300b6
to
f8372f8
Compare
@rustbot ready |
@bors r+ p=1 |
📌 Commit f8372f8 has been approved by |
☀️ Test successful - checks-actions |
Some error messages currently contain unnecessary trailing whitespace. There are some legitimate reasons for having trailing whitespace in the output, such as for uniform indentation of possibly-empty input lines, but the whitespace I have addressed here occurs in a line used only for spacing, and I see no reason why that should have trailing whitespace (spacing lines inserted in other places also don't have trailing whitespace).
I have also removed a superfluous call to
buffer.putc()
, which has no effect because the same character is already placed there bydraw_col_separator()
.Use
git diff --ignore-space-at-eol
to see my changes; otherwise the diff is quite large due to the whitespace removed from expected outputs insrc/test/ui/
.