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 e20d5ab commit 2a14275Copy full SHA for 2a14275
compiler/rustc_ast_pretty/src/pp.rs
@@ -347,10 +347,6 @@ impl Printer {
347
}
348
349
350
- fn scan_top(&self) -> usize {
351
- *self.scan_stack.front().unwrap()
352
- }
353
-
354
fn scan_pop_bottom(&mut self) -> usize {
355
self.scan_stack.pop_back().unwrap()
356
@@ -388,7 +384,7 @@ impl Printer {
388
384
389
385
fn check_stack(&mut self, k: usize) {
390
386
if !self.scan_stack.is_empty() {
391
- let x = self.scan_top();
387
+ let x = *self.scan_stack.front().unwrap();
392
match self.buf[x].token {
393
Token::Begin(_) => {
394
if k > 0 {
0 commit comments