]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_pretty/src/lib.rs
Make RPIT and TAIT work exactly the same
[rust.git] / compiler / rustc_hir_pretty / src / lib.rs
index 7317ce7335aa5fda4fced425a08af1262ff87283..7bf91df9f760b6fbac5e409564847039712128c2 100644 (file)
@@ -1459,11 +1459,13 @@ pub fn print_expr(&mut self, expr: &hir::Expr<'_>) {
             }
             hir::ExprKind::Closure {
                 capture_clause,
+                bound_generic_params,
                 ref fn_decl,
                 body,
                 fn_decl_span: _,
                 movability: _,
             } => {
+                self.print_formal_generic_params(bound_generic_params);
                 self.print_capture_clause(capture_clause);
 
                 self.print_closure_params(&fn_decl, body);