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
Issue: rustfmt unexpectedly removes comments inside parentheses in patterns (PatKind::Paren).
rustfmt
PatKind::Paren
Example:
Input:
fn main() { let (/* */() | ()/* */) = (); }
Output (after formatting):
fn main() { let (() | ()) = (); }
Expected Outcome:
Related Issues:
PatKind::Or
TyKind::Paren
The text was updated successfully, but these errors were encountered:
@rustbot claim
Sorry, something went wrong.
yuvraj-wale
Successfully merging a pull request may close this issue.
Issue:
rustfmt
unexpectedly removes comments inside parentheses in patterns (PatKind::Paren
).Example:
Input:
Output (after formatting):
Expected Outcome:
Related Issues:
PatKind::Paren
, partially overlaps with rustfmt deletes comments in "or" patterns #6044, which focuses onPatKind::Or
.PatKind::Paren
instead ofTyKind::Paren
.The text was updated successfully, but these errors were encountered: