Skip to content

Fix long type paths by breaking paths into multiple lines when exceeding maximum width#6494

Open
danielhuang wants to merge 2 commits intorust-lang:mainfrom
danielhuang:fix-long-type-paths
Open

Fix long type paths by breaking paths into multiple lines when exceeding maximum width#6494
danielhuang wants to merge 2 commits intorust-lang:mainfrom
danielhuang:fix-long-type-paths

Conversation

@danielhuang
Copy link
Copy Markdown

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.

@danielhuang danielhuang force-pushed the fix-long-type-paths branch from 31ed77a to 352440c Compare March 8, 2025 23:51
@danielhuang
Copy link
Copy Markdown
Author

Does not fix #3863 (comment) yet.

@ytmimi
Copy link
Copy Markdown
Contributor

ytmimi commented Mar 11, 2025

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.

@ytmimi ytmimi added the S-blocked Status: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label label Mar 11, 2025
@jieyouxu jieyouxu added S-waiting-on-review Status: awaiting review from the assignee but also interested parties. and removed pr-not-reviewed labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-blocked Status: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label S-waiting-on-review Status: awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants