-
Notifications
You must be signed in to change notification settings - Fork 898
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
imports_granularity = "Module"
doesn't work if module path is too long
#6164
Comments
I'm planning to investigate it. |
Failed here: Line 1088 in d5f1200
TODO(tomorrow): Understand what |
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
May 19, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
May 19, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
May 28, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Jun 1, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Jun 4, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Jun 20, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Jun 25, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Jul 10, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Jul 20, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Aug 20, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
kenoss
added a commit
to kenoss/rustfmt
that referenced
this issue
Dec 17, 2024
…anularity` This patch reduces format failure for non default `imports_granularity` and correct the behavior around some edge cases. - Supports too long line of `use ...` that contains `{}`. - Fixes the width calculation of too long lines of `use ...`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repro steps
tests/source/5131_module.rs
.cargo test test::system_tests
and get output.case 1. correct
Input:
Output:
case 2. wrong
Input:
Output:
Expected:
case 3. wrong
Input:
Output:
Expected:
Link: #4991
The text was updated successfully, but these errors were encountered: