reorder_imports=false should still format the imports #3515
Labels
a-imports
`use` syntax
bug
Panic, non-idempotency, invalid code, etc.
only-with-option
requires a non-default option value to reproduce
Milestone
Input file repro.rs:
Rustfmt invocation:
cargo run --bin rustfmt -- \ path/to/repro.rs \ --config-path <(echo reorder_imports=false) \ --emit=stdout
Output as of current master branch, 34bf137:
Expected output, imports formatted but not reordered:
I care about this for dtolnay/cargo-expand#56 in which I receive imports from a proc macro in TokenStream-style spaced out formatting and want to format them without reordering anything.
The text was updated successfully, but these errors were encountered: