granite-rust/compiler/rustc_ast_pretty
David Tolnay 8ac05b9766
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;
    }
2022-01-30 19:45:00 -08:00
..
src Fix some double indents on exprs containing blocks 2022-01-30 19:45:00 -08:00
Cargo.toml Delete pretty printer tracing 2022-01-18 12:33:42 -08:00