about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/async_closures.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_lint/src/async_closures.rs')
-rw-r--r--compiler/rustc_lint/src/async_closures.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/async_closures.rs b/compiler/rustc_lint/src/async_closures.rs
index 5d40b8ab2ee..02fb22bf782 100644
--- a/compiler/rustc_lint/src/async_closures.rs
+++ b/compiler/rustc_lint/src/async_closures.rs
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for AsyncClosureUsage {
             return;
         };
 
-        let mut body = cx.tcx.hir().body(body).value;
+        let mut body = cx.tcx.hir_body(body).value;
 
         // Only peel blocks that have no expressions.
         while let hir::ExprKind::Block(&hir::Block { stmts: [], expr: Some(tail), .. }, None) =