mirror of https://github.com/rust-lang/rust.git
Fix HIR printing of yield
This commit is contained in:
parent
94a82adbb4
commit
1e6ec9f33a
|
@ -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)?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue