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
extern
Describe the bug
When a normal comment (non-doc-comment) is applied to an item in an extern block, rustfmt will delete it.
rustfmt
To Reproduce
The following code:
extern "C" { // A comment fn bar(); }
is formatted as:
extern "C" { fn bar(); }
Expected behavior
rustfmt should leave the comment intact
Meta
The text was updated successfully, but these errors were encountered:
Duplicate of #4528, fixed in the next nightly (rust-lang/rust#79120)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When a normal comment (non-doc-comment) is applied to an item in an
extern
block,rustfmt
will delete it.To Reproduce
The following code:
is formatted as:
Expected behavior
rustfmt
should leave the comment intactMeta
rustfmt
The text was updated successfully, but these errors were encountered: