diff options
| author | David Tolnay <dtolnay@gmail.com> | 2022-01-20 21:22:40 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2022-01-30 19:45:00 -0800 |
| commit | 8ac05b97660ec3bd5e8f0d3b7edb246b6cea9c32 (patch) | |
| tree | 0319260106e9023ad108bf44390b3c7938b7cc12 /compiler/rustc_mir_transform/src/coverage/graph.rs | |
| parent | cb93e9c0ec6058df03e163fd7b3e652f7f22041d (diff) | |
| download | rust-8ac05b97660ec3bd5e8f0d3b7edb246b6cea9c32.tar.gz rust-8ac05b97660ec3bd5e8f0d3b7edb246b6cea9c32.zip | |
Fix some double indents on exprs containing blocks
The `print_expr` method already places an `ibox(INDENT_UNIT)` around
every expr that gets printed. Some exprs were then using `self.head`
inside of that, which does its own `cbox(INDENT_UNIT)`, resulting in two
levels of indentation:
while true {
stuff;
}
This commit fixes those cases to produce the expected single level of
indentation within every expression containing a block.
while true {
stuff;
}
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
