Skip to content
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

Merged
merged 3 commits into from
Jun 16, 2022
Merged

Backport 3795 #5384

merged 3 commits into from
Jun 16, 2022

Commits on Jun 14, 2022

  1. Backport 3795

    fix sorting of use statements with raw identifiers
    ytmimi committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    6afa713 View commit details
    Browse the repository at this point in the history
  2. Add Version information to UseSegment

    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`.
    ytmimi committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    406549a View commit details
    Browse the repository at this point in the history
  3. Version gate raw identifier use statement sorting

    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`.
    ytmimi committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    bd3630d View commit details
    Browse the repository at this point in the history