-
Notifications
You must be signed in to change notification settings - Fork 961
Closed
Labels
bugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.poor-formatting
Description
#![feature(slice_patterns)]
fn main() {
match b"123" {
[0, ..] => {}
_ => {}
}
}
As of rustfmt 0.99.1-nightly (da17b68 2018-08-04), formatting produces the following diff which I believe is less readable than the original:
- [0, ..] => {}
+ [0, _..] => {}
Metadata
Metadata
Assignees
Labels
bugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.poor-formatting