-
Notifications
You must be signed in to change notification settings - Fork 996
Open
Labels
A-generated-codeArea: related to rustfmt and generated codeArea: related to rustfmt and generated codeC-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
Description
Rustfmt takes about a minute to reformat 26k file (generated pest grammar).
File in question: https://github.com/steveklabnik/semver-parser/blob/0c43dbb12d35f9b58142b3976391eb52ea71725f/src/generated.rs
To Reproduce
Run this test in the semver-parser repo:
Expected behavior
Formatting takes low-digits seconds.
Meta
- rustfmt version: rustfmt 1.4.20-stable (48f6c32 2020-08-09)
- From where did you install rustfmt?: rustup
- How do you run rustfmt: https://github.com/steveklabnik/semver-parser/blob/0c43dbb12d35f9b58142b3976391eb52ea71725f/tests/genpest.rs#L68-L84
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-generated-codeArea: related to rustfmt and generated codeArea: related to rustfmt and generated codeC-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