Skip to content

Commit 6579d13

Browse files
committed
or-patterns: normalize HIR pretty priting.
1 parent b2f903c commit 6579d13

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/librustc/hir/print.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,16 +1790,7 @@ impl<'a> State<'a> {
17901790
self.ann.pre(self, AnnNode::Arm(arm));
17911791
self.ibox(0);
17921792
self.print_outer_attributes(&arm.attrs);
1793-
let mut first = true;
1794-
for p in &arm.pats {
1795-
if first {
1796-
first = false;
1797-
} else {
1798-
self.s.space();
1799-
self.word_space("|");
1800-
}
1801-
self.print_pat(&p);
1802-
}
1793+
self.print_pat(&arm.pat);
18031794
self.s.space();
18041795
if let Some(ref g) = arm.guard {
18051796
match g {

0 commit comments

Comments
 (0)