-
Notifications
You must be signed in to change notification settings - Fork 889
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
Backport 3795 #5384
Backport 3795 #5384
Conversation
It seems the integration tests are failing because of issues related to clap-rs/clap#3822 |
So I think the issue is two fold. I believe we're running into an issue with cargo install --path . --force installing a newer version of clap than we have listed in our
And here's a snippet from the
Based on the help text it seems like the remedy is to add the |
On a side note if you take a look at one of the integration tests that passed (clippy) for example |
This is intentional, but in my opinion is more reflective of the limited utility these tests really provide. See below for more details rustfmt/.github/workflows/integration.yml Lines 33 to 38 in 7b73b60
rustfmt/.github/workflows/integration.yml Lines 55 to 56 in 7b73b60
|
Ahh I see. Thanks for pointing that out! |
fix sorting of use statements with raw identifiers
There are some proposed import sorting changes for raw identifier `r#`. These changes constitute a breaking change, and need to be version gagted. Before version gating those changes we add the version information to the `UseSegment`.
When useing `version=One` rustfmt will treat the leading `r#` as part of the `UseSegment` used for sorting. When using `version=Two` rustfmt will ignore the leading `r#` and only consider the name of the identifier when sorting the `UseSegment`.
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.
lgtm, thanks!
Backport and version gate the original fix for use statement sorting with raw identifiers (#3795)
Let me know if any additional tests need to be added to this.
Closes #5362