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 2a14275 commit ae28ec5Copy full SHA for ae28ec5
compiler/rustc_ast_pretty/src/pp.rs
@@ -337,7 +337,7 @@ impl Printer {
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_pop_bottom();
+ let scanned = self.scan_stack.pop_back().unwrap();
341
self.buf[scanned].size = SIZE_INFINITY;
342
}
343
self.advance_left();
@@ -347,10 +347,6 @@ impl Printer {
347
348
349
350
- fn scan_pop_bottom(&mut self) -> usize {
351
- self.scan_stack.pop_back().unwrap()
352
- }
353
-
354
fn advance_left(&mut self) {
355
let mut left_size = self.buf[self.left].size;
356
0 commit comments