Skip to content

Add error_on_line_overflow_comments config option #1869

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

Merged

Conversation

topecongiro
Copy link
Contributor

This PR adds an option error_on_line_overflow_comments which when set to false prevents rustfmt from emitting errors about comments that overflowed the max width (cc #1770).

This option is not perfect in that it only works against single-lined comments (e.g. //, /// and alike).
Dealing with block comments (/* .. */) is left for future work.

@nrc nrc merged commit e1a0d82 into rust-lang:master Aug 9, 2017
@nrc
Copy link
Member

nrc commented Aug 9, 2017

Looks good, thanks!

@topecongiro topecongiro deleted the configs-error_on_line_overflow_comments branch May 23, 2018 15:24
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.

2 participants