-
Notifications
You must be signed in to change notification settings - Fork 925
Import sorting breaks with long paths #5829
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
Comments
If you configure |
@lovesegfault thanks for reaching out, and for digging into this a little yourself. This is indeed a |
@ytmimi I don't think solving this necessarily requires fiddling with For example, it could attempt to format that long import as: use ayet_another_crate_with_a_really_big_name::{
bar_bar_bar_bar_bar_bar_bar_bar_bar::{
bar_bar_bar_bar_bar::BarBarBarBarBarBarBarBarBar;
}
}; To keep it under |
I believe something similar was proposed in #4746, specifically #4746 (comment) |
Given the following code:
playground link
I would expect
rustfmt
to reorder those two, resulting in:However, if you test it,
rustfmt
leaves the ordering unchanged, which, I believe, is a bug.The text was updated successfully, but these errors were encountered: