-
Notifications
You must be signed in to change notification settings - Fork 1k
Comment single-line to multi-line formatting is botched #3695
Copy link
Copy link
Open
Labels
A-commentsArea: commentsArea: commentsC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-poor-formattingIssue: poor formattingIssue: poor formattingUO-wrap_commentsUnstable option: wrap_commentsUnstable option: wrap_commentsonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Metadata
Metadata
Assignees
Labels
A-commentsArea: commentsArea: commentsC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-poor-formattingIssue: poor formattingIssue: poor formattingUO-wrap_commentsUnstable option: wrap_commentsUnstable option: wrap_commentsonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Type
Fields
Give feedbackNo fields configured for issues without a type.
Given source like this:
rustfmt will produce the following diff:
.lines() { let peach = match (loop {}) { - Some(idx) => idx + open_quote, // get the absolute position from the original string + Some(idx) => idx + open_quote, /* get the absolute position from the original + * string */ None => loop {}, }; }In this diff an incorrectly aligned 2nd line of the block comment can be seen.