We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae28ec5 commit 80139a0Copy full SHA for 80139a0
compiler/rustc_ast_pretty/src/pp.rs
@@ -336,9 +336,9 @@ impl Printer {
336
337
fn check_stream(&mut self) {
338
if self.right_total - self.left_total > self.space {
339
- if Some(&self.left) == self.scan_stack.back() {
340
- let scanned = self.scan_stack.pop_back().unwrap();
341
- self.buf[scanned].size = SIZE_INFINITY;
+ if self.scan_stack.back() == Some(&self.left) {
+ self.scan_stack.pop_back().unwrap();
+ self.buf[self.left].size = SIZE_INFINITY;
342
}
343
self.advance_left();
344
if self.left != self.right {
0 commit comments