diff options
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state/expr.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_hir_pretty/src/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs index df848a26d39..37df567081f 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs @@ -21,7 +21,7 @@ impl<'a> State<'a> { match &_else.kind { // Another `else if` block. ast::ExprKind::If(i, then, e) => { - self.cbox(INDENT_UNIT - 1); + self.cbox(INDENT_UNIT); self.ibox(0); self.word(" else if "); self.print_expr_as_cond(i); @@ -31,7 +31,7 @@ impl<'a> State<'a> { } // Final `else` block. ast::ExprKind::Block(b, _) => { - self.cbox(INDENT_UNIT - 1); + self.cbox(INDENT_UNIT); self.ibox(0); self.word(" else "); self.print_block(b) diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs index ff4385c3bcc..65b008dfc95 100644 --- a/compiler/rustc_hir_pretty/src/lib.rs +++ b/compiler/rustc_hir_pretty/src/lib.rs @@ -1065,7 +1065,7 @@ impl<'a> State<'a> { match els_inner.kind { // Another `else if` block. hir::ExprKind::If(i, then, e) => { - self.cbox(INDENT_UNIT - 1); + self.cbox(INDENT_UNIT); self.ibox(0); self.word(" else if "); self.print_expr_as_cond(i); @@ -1075,7 +1075,7 @@ impl<'a> State<'a> { } // Final `else` block. hir::ExprKind::Block(b, _) => { - self.cbox(INDENT_UNIT - 1); + self.cbox(INDENT_UNIT); self.ibox(0); self.word(" else "); self.print_block(b); |
