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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danielhuang
Copy link

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
Author

Does not fix #3863 (comment) yet.

@ytmimi
Copy link
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 blocked Blocked on rustc, an RFC, etc. label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on rustc, an RFC, etc. pr-not-reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants