diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-09-20 14:11:23 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-09-24 23:21:19 +0900 |
| commit | ea75178219ab4fd12d035acfc3a0aedb04e91db7 (patch) | |
| tree | 6f75a3ad8e115d7d9142ef171ebf9940ab8f6a67 /clippy_utils/src/usage.rs | |
| parent | de8a1dd7e1a52aa3be99cf22a39e4d6c63510644 (diff) | |
| download | rust-ea75178219ab4fd12d035acfc3a0aedb04e91db7.tar.gz rust-ea75178219ab4fd12d035acfc3a0aedb04e91db7.zip | |
separate definitions and `HIR` owners
fix a ui test use `into` fix clippy ui test fix a run-make-fulldeps test implement `IntoQueryParam<DefId>` for `OwnerId` use `OwnerId` for more queries change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)`
Diffstat (limited to 'clippy_utils/src/usage.rs')
| -rw-r--r-- | clippy_utils/src/usage.rs | 2 |
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(), ) |
