Skip to content

Commit 3c299a9

Browse files
authored
Rollup merge of #62532 - Mark-Simulacrum:syntax-print-cleanup, r=petrochenkov
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.
2 parents d0cec04 + 56a9237 commit 3c299a9

File tree

15 files changed

+359
-476
lines changed

15 files changed

+359
-476
lines changed

src/librustc/hir/map/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1212,10 +1212,8 @@ impl<'a> print::State<'a> {
12121212
Node::Pat(a) => self.print_pat(&a),
12131213
Node::Arm(a) => self.print_arm(&a),
12141214
Node::Block(a) => {
1215-
use syntax::print::pprust::PrintState;
1216-
12171215
// containing cbox, will be closed by print-block at }
1218-
self.cbox(print::indent_unit);
1216+
self.cbox(print::INDENT_UNIT);
12191217
// head-ibox, will be closed by print-block after {
12201218
self.ibox(0);
12211219
self.print_block(&a)

0 commit comments

Comments
 (0)