Skip to content

Commit 1e6ec9f

Browse files
Zoxcarielb1
authored andcommitted
Fix HIR printing of yield
1 parent 94a82ad commit 1e6ec9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/hir/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ impl<'a> State<'a> {
14951495
self.pclose()?;
14961496
}
14971497
hir::ExprYield(ref expr) => {
1498-
self.s.word("yield")?;
1498+
self.word_space("yield")?;
14991499
self.print_expr_maybe_paren(&expr, parser::PREC_JUMP)?;
15001500
}
15011501
}

0 commit comments

Comments
 (0)