rustfmt
rustfmt copied to clipboard
Fix long type paths by breaking paths into multiple lines when exceeding maximum width
A long type path could look like long_type_path::long_type_path::long_type_path::long_type_path::long_type_path::long_type_path::long_type_path::long_type_path::long_type_path::long_type_path::Long which currently would not get formatted. This fix would break the path into multiple lines if necessary.
Does not fix https://github.com/rust-lang/rustfmt/issues/3863#issuecomment-1857897142 yet.
I'm not sure how we should move forward here. I'm going to mark this one as blocked for now. If you could, please file an issue with team-style to see if they have any suggestions for defining rules on how to break long path names.