]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/mut_key.rs
Auto merge of #76071 - khyperia:configurable_to_immediate, r=eddyb
[rust.git] / src / tools / clippy / clippy_lints / src / mut_key.rs
index d8fb8a4bb776bafc273841a6ee4ac824aa94a807..9f8f401cc0f67d4e869fb002e914d4bfa18f1d7d 100644 (file)
@@ -76,7 +76,7 @@ fn check_local(&mut self, cx: &LateContext<'_>, local: &hir::Local<'_>) {
         if let hir::PatKind::Wild = local.pat.kind {
             return;
         }
-        check_ty(cx, local.span, cx.tables().pat_ty(&*local.pat));
+        check_ty(cx, local.span, cx.typeck_results().pat_ty(&*local.pat));
     }
 }