about summary refs log tree commit diff
path: root/clippy_utils/src/usage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_utils/src/usage.rs')
-rw-r--r--clippy_utils/src/usage.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/usage.rs b/clippy_utils/src/usage.rs
index 3af5dfb62f9..a7c08839f52 100644
--- a/clippy_utils/src/usage.rs
+++ b/clippy_utils/src/usage.rs
@@ -21,7 +21,7 @@ pub fn mutated_variables<'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'tcx>) ->
         ExprUseVisitor::new(
             &mut delegate,
             &infcx,
-            expr.hir_id.owner,
+            expr.hir_id.owner.def_id,
             cx.param_env,
             cx.typeck_results(),
         )