We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using this version of rustfmt:
rustfmt
$ cargo +nightly fmt -- -V rustfmt 1.4.11-nightly (18382352 2019-12-03)
and starting with this file:
/** foobar */ const foo: u32 = 0;
I find that rustfmt keeps adding asterisks to the end of the comment. If I keep re-running rustfmt, I get more asterisks:
$ cat src/dummy.rs /** foobar */ const foo: u32 = 0; $ cargo +nightly fmt -- src/dummy.rs $ cat src/dummy.rs /** foobar **/ const foo: u32 = 0; $ cargo +nightly fmt -- src/dummy.rs $ cat src/dummy.rs /** foobar * **/ const foo: u32 = 0; $ cargo +nightly fmt -- src/dummy.rs $ cat src/dummy.rs /** foobar * * **/ const foo: u32 = 0; $ cargo +nightly fmt -- src/dummy.rs $ cat src/dummy.rs /** foobar * * * **/ const foo: u32 = 0; $ cargo +nightly fmt -- src/dummy.rs $ cat src/dummy.rs /** foobar * * * * **/ const foo: u32 = 0; $ cargo +nightly fmt -- src/dummy.rs $ cat src/dummy.rs /** foobar * * * * * **/ const foo: u32 = 0; $
The text was updated successfully, but these errors were encountered:
@davepacheco I was not able to reproduce this locally. Are you using any configuration option?
Sorry, something went wrong.
Sorry for leaving that out! I see this with a rustfmt.toml that contains only wrap_comments = true. I do not see this with default options.
rustfmt.toml
wrap_comments = true
fix: backport fix for rust-lang#4020
5db7152
Successfully merging a pull request may close this issue.
Using this version of
rustfmt
:and starting with this file:
I find that
rustfmt
keeps adding asterisks to the end of the comment. If I keep re-runningrustfmt
, I get more asterisks:The text was updated successfully, but these errors were encountered: