-
Notifications
You must be signed in to change notification settings - Fork 926
Getting binop_separator="Back"
snippet in Configurations.md to pass
#2361
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
Getting binop_separator="Back"
snippet in Configurations.md to pass
#2361
Conversation
Configurations.md
Outdated
let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.. | ||
bbbbbbbbbbbbbbbbbbbbbbbbbbbbb; | ||
let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; |
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.
Here's the part in question. The previous snipped had ..
at the end of line. Currently, rustfmt with binop_separator="Back"
places it on the next line. Is this expected?
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.
No, this is a bug, I think, ..
should respect the binop_separator
option
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.
👍
Here's my thinking on this: I'd like to keep moving forward on the configuration snippets and create issues for bugs identified along the way. For this issue I've created #2364. There's three clear options:
- Leave the range notation line in this PR and add a comment pointing at Range notation not handled as expected for
binop_separator="Back"
configuration #2364. That's nice because when Range notation not handled as expected forbinop_separator="Back"
configuration #2364 is fixed, the configuration snippet will break, guaranteeing that it will get updated. The downside is that maybe you don't want bugs noted in the snippets. - I remove the line in question from the snippet and make a note in Range notation not handled as expected for
binop_separator="Back"
configuration #2364 saying it should be added back before that issue is resolved. - We could decide that finishing the configuration snippet changes before dealing with bugs identified isn't the way to go and that we should fix the bug before moving on. (It's also possible someone else will just fix it quickly.)
I'm going to update the PR to reflect Option 1 above. If you prefer a different option, I'll change it.
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.
yeah, option 1 sounds good!
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.
I would use the format // FIXME(#1234) a short description of the bug
for the comments. I'll merge this as is, but if you update it in a future PR, that would be good.
2e45973
to
bbe4b38
Compare
As the next phase of #1845 I am fixing the formatting failures uncovered by #2292. Most of them are straightforward and will arrive as one big PR. I am submitting this one separately because it potentially exposes a bug.
In terms of getting the test to pass, here's the line failure count for
cargo test -- --ignored
before the change:Here's the line failure count for
cargo test -- --ignored
after the change: