-
Notifications
You must be signed in to change notification settings - Fork 965
Closed
Labels
C-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-ICEP-highHigh priorityHigh priority
Description
Hey -- I'm trying to integrate RLS and rustfmt with our IDE, and it looks like range formatting is broken in a couple of ways. Here's a repro with 19bd5ea, with these settings:
condense_wildcard_suffixes = true
reorder_imported_names = true
reorder_imports = true
reorder_imports_in_group = true
use_try_shorthand = true
- Download
lz4.rsfrom this gist somewhere. rustfmt lz4.rs --file-lines '[{"file": "lz4.rs", "range": [20, 27]}]' --write-mode display- What you get back looks like
lz4_output.rs.
Note a couple of things:
- Imports were reordered even though none of the imports were in the range.
- Line 32 got formatted even though it isn't in the range.
Metadata
Metadata
Assignees
Labels
C-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-ICEP-highHigh priorityHigh priority