Open
Description
When using both imports_indent="Visual"
and reorder_imports=false
the alignments of all subsequent lines within the block are off by 4 spaces.
To Reproduce
source:
// rustfmt-imports_indent: Visual
// rustfmt-reorder_imports: false
use module::{
submodule_A::{Type_A1, Type_A2},
submodule_B::{Type_B1, Type_B2},
};
target:
// rustfmt-imports_indent: Visual
// rustfmt-reorder_imports: false
use module::{submodule_A::{Type_A1, Type_A2},
submodule_B::{Type_B1, Type_B2}};
Expected behavior
// rustfmt-imports_indent: Visual
// rustfmt-reorder_imports: false
use module::{submodule_A::{Type_A1, Type_A2},
submodule_B::{Type_B1, Type_B2}};
Note that:
- The correct thing happens when either
imports_indent="Visual"
orreorder_imports=false
is set, but not when they are both set simultaneously. - No reordering of modules needs to actually happen (or be prevented from happening) for this to occur.
Meta
- rustfmt version: 94035f9 (HEAD -> master)
refs #3360