about summary refs log tree commit diff
path: root/clippy_lints/src/mutable_debug_assertion.rs
diff options
context:
space:
mode:
authorValentin Lazureanu <valentin@lazureanu.com>2020-07-17 08:47:04 +0000
committerValentin Lazureanu <valentin@lazureanu.com>2020-07-17 08:47:04 +0000
commit5a20489c5ca0951827cbb1b4d72ddfdfd393713a (patch)
tree263af6d529b7113ed43b0ce3a4393ca65aa10bd5 /clippy_lints/src/mutable_debug_assertion.rs
parent62db617e401487f7b4b5d2d19591b16c7339d131 (diff)
downloadrust-5a20489c5ca0951827cbb1b4d72ddfdfd393713a.tar.gz
rust-5a20489c5ca0951827cbb1b4d72ddfdfd393713a.zip
Rename TypeckTables to TypeckResults.
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
-rw-r--r--clippy_lints/src/mutable_debug_assertion.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs
index 78d2356748f..7f529f0404c 100644
--- a/clippy_lints/src/mutable_debug_assertion.rs
+++ b/clippy_lints/src/mutable_debug_assertion.rs
@@ -135,7 +135,7 @@ impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> {
                 return;
             },
             ExprKind::Path(_) => {
-                if let Some(adj) = self.cx.tables().adjustments().get(expr.hir_id) {
+                if let Some(adj) = self.cx.typeck_results().adjustments().get(expr.hir_id) {
                     if adj
                         .iter()
                         .any(|a| matches!(a.target.kind, ty::Ref(_, _, Mutability::Mut)))