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

Unicode comment align #5505

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Conversation

A-Walrus
Copy link
Contributor

Also added tests for this behavior.
Closes #5504
Related to #6

@ytmimi
Copy link
Contributor

ytmimi commented Aug 17, 2022

The changes look good to me. @calebcartwright are there other rewrites where we align comments that we should also add tests for? Maybe we want to add a few tests with block comments to make sure that those get aligned as well.

Copy link
Member

@calebcartwright calebcartwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix @A-Walrus and the review @ytmimi

We can add some additional tests in a follow up where the indent_style is set to visual but I don't think we need to block that here, as it seems pretty clearly the right thing to do and that option is unstable anyway.

@calebcartwright calebcartwright added the release-notes Needs an associated changelog entry label Aug 18, 2022
@calebcartwright calebcartwright merged commit 38659ec into rust-lang:master Aug 18, 2022
@calebcartwright calebcartwright removed the release-notes Needs an associated changelog entry label Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect comment aligning with strange unicode characters
3 participants