Skip to content
Permalink
Browse files

Simplify print_end

Presumably the code was from an older age of Rust and can now be written
much simpler.
  • Loading branch information...
Mark-Simulacrum committed Jul 7, 2019
1 parent 55a6a76 commit 57cf7a2e5728e5b4d77230ffb1e372385f4f24dd
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/libsyntax/print/pp.rs
@@ -521,9 +521,7 @@ impl Printer {

fn print_end(&mut self) {
debug!("print End -> pop End");
let print_stack = &mut self.print_stack;
assert!(!print_stack.is_empty());
print_stack.pop().unwrap();
self.print_stack.pop().unwrap();
}

fn print_break(&mut self, b: BreakToken, l: isize) {

0 comments on commit 57cf7a2

Please sign in to comment.
You can’t perform that action at this time.