about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_ast_pretty/src/pp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_pretty/src/pp.rs b/compiler/rustc_ast_pretty/src/pp.rs
index d9832d560a8..21e685fff4a 100644
--- a/compiler/rustc_ast_pretty/src/pp.rs
+++ b/compiler/rustc_ast_pretty/src/pp.rs
@@ -315,8 +315,8 @@ impl Printer {
         } else {
             self.right += 1;
             self.buf.advance_right();
+            self.check_stack(0);
         }
-        self.check_stack(0);
         self.buf[self.right] = BufEntry { token: Token::Break(b), size: -self.right_total };
         self.scan_stack.push_front(self.right);
         self.right_total += b.blank_space;