-
Notifications
You must be signed in to change notification settings - Fork 972
Closed
Labels
1x-backport:completedA-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-ICE
Milestone
Description
In short, if you comment out the where clause, then the subsequent semicolon is moved into the comment.
Which of course breaks the code.
Before:
trait Foo {
fn bar(&self)
// where
// Self: Bar
;
}After:
trait Foo {
fn bar(&self)
// where
// Self: Bar;
}rustfmt 1.4.25-stable (0f29ff6 2020-11-11)
Metadata
Metadata
Assignees
Labels
1x-backport:completedA-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-ICE