]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/reachable.rs
Rollup merge of #100030 - WaffleLapkin:nice_pointer_sis, r=scottmcm
[rust.git] / compiler / rustc_passes / src / reachable.rs
index c830ab11e8e6e3ba7c958892b2756da3498a5a12..f7e3fac6b2e20c4f906f6a32fa8639c54a5115c9 100644 (file)
@@ -273,7 +273,10 @@ fn propagate_node(&mut self, node: &Node<'tcx>, search_item: LocalDefId) {
                 }
                 hir::ImplItemKind::TyAlias(_) => {}
             },
-            Node::Expr(&hir::Expr { kind: hir::ExprKind::Closure { body, .. }, .. }) => {
+            Node::Expr(&hir::Expr {
+                kind: hir::ExprKind::Closure(&hir::Closure { body, .. }),
+                ..
+            }) => {
                 self.visit_nested_body(body);
             }
             // Nothing to recurse on for these