-
Notifications
You must be signed in to change notification settings - Fork 974
Open
Labels
1x-backport:pendingFixed/resolved in source but not yet backported to a 1x branch and releaseFixed/resolved in source but not yet backported to a 1x branch and releaseA-commentsArea: commentsArea: commentsI-poor-formattingIssue: poor formattingIssue: poor formattingP-lowLow priorityLow priority
Description
Input
fn main() {
let v = [
"A", /* item A comment */
"BBBBBB", /* item BBBBBB comment line 1
* item BBBBBB comment line 2 */
"CCC", /* item CCC comment */
];
}Output
fn main() {
let v = [
"A", /* item A comment */
"BBBBBB", /* item BBBBBB comment line 1
* item BBBBBB comment line 2 */
"CCC", /* item CCC comment */
];
}Expected output
Same as input. The second line of the comment to "BBBBBB" is wrongly aligned to the "A" comment. (Based on test case from #4518.)
Meta
- rustfmt version:
rustfmt 2.0.0-rc.2-nightly (30bda450 2020-11-18) - From where did you install rustfmt?: self build
Metadata
Metadata
Assignees
Labels
1x-backport:pendingFixed/resolved in source but not yet backported to a 1x branch and releaseFixed/resolved in source but not yet backported to a 1x branch and releaseA-commentsArea: commentsArea: commentsI-poor-formattingIssue: poor formattingIssue: poor formattingP-lowLow priorityLow priority