diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-06-26 02:56:23 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-06-26 02:56:23 +0300 |
| commit | f5ce0e5fe960d09db01cf912c475cd1a52131120 (patch) | |
| tree | 4c518b2c5be8ec71515b04612e697abbeb163835 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 80bcbf521c7ff95e38a7567432b5519cc18e5b2a (diff) | |
| download | rust-f5ce0e5fe960d09db01cf912c475cd1a52131120.tar.gz rust-f5ce0e5fe960d09db01cf912c475cd1a52131120.zip | |
rustc_lint: only query `typeck_tables_of` when a lint needs it.
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
| -rw-r--r-- | clippy_lints/src/mutable_debug_assertion.rs | 2 |
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 119e0905ff4..45db5140711 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.tables().adjustments().get(expr.hir_id) { if adj .iter() .any(|a| matches!(a.target.kind, ty::Ref(_, _, Mutability::Mut))) |
