Skip to content

Commit

Permalink
Rollup merge of #62532 - Mark-Simulacrum:syntax-print-cleanup, r=petr…
Browse files Browse the repository at this point in the history
…ochenkov

Some more cleanups to syntax::print

All of these changes should be functionally equivalent to previous code.

Each commit mostly stands alone and this PR is easiest to review by-commit.
  • Loading branch information
Centril committed Jul 10, 2019
2 parents d0cec04 + 56a9237 commit 3c299a9
Show file tree
Hide file tree
Showing 15 changed files with 359 additions and 476 deletions.
4 changes: 1 addition & 3 deletions src/librustc/hir/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,8 @@ impl<'a> print::State<'a> {
Node::Pat(a) => self.print_pat(&a),
Node::Arm(a) => self.print_arm(&a),
Node::Block(a) => {
use syntax::print::pprust::PrintState;

// containing cbox, will be closed by print-block at }
self.cbox(print::indent_unit);
self.cbox(print::INDENT_UNIT);
// head-ibox, will be closed by print-block after {
self.ibox(0);
self.print_block(&a)
Expand Down

0 comments on commit 3c299a9

Please sign in to comment.