Don't print gen in HIR

This commit is contained in:
John Kåre Alsaker 2017-07-10 20:06:39 +02:00
parent 075fd364d0
commit 057b0adf47

View File

@ -1312,12 +1312,7 @@ impl<'a> State<'a> {
} }
self.bclose_(expr.span, indent_unit)?; self.bclose_(expr.span, indent_unit)?;
} }
hir::ExprClosure(capture_clause, ref decl, body, _fn_decl_span, gen) => { hir::ExprClosure(capture_clause, ref decl, body, _fn_decl_span, _gen) => {
if gen.is_some() {
self.head("gen")?;
space(&mut self.s)?;
}
self.print_capture_clause(capture_clause)?; self.print_capture_clause(capture_clause)?;
self.print_closure_args(&decl, body)?; self.print_closure_args(&decl, body)?;