diff --git a/src/librustc/hir/print.rs b/src/librustc/hir/print.rs index a06ea0af2a9..41a253f7904 100644 --- a/src/librustc/hir/print.rs +++ b/src/librustc/hir/print.rs @@ -1495,7 +1495,7 @@ impl<'a> State<'a> { self.pclose()?; } hir::ExprYield(ref expr) => { - self.s.word("yield")?; + self.word_space("yield")?; self.print_expr_maybe_paren(&expr, parser::PREC_JUMP)?; } }