diff options
| author | bors <bors@rust-lang.org> | 2019-03-08 17:10:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-03-08 17:10:52 +0000 |
| commit | bd6b5a1a36cb7b105bff8c4e2629bf28eca8471e (patch) | |
| tree | 8fe15321268e43eeb074417ab7e1f01970985533 /clippy_lints/src/utils/internal_lints.rs | |
| parent | 9702b3d2c0905b6975a0e6a9ce25c55f95eba65e (diff) | |
| parent | 5d78250c75db3b1923072cf1be3b03f7d0cef5e2 (diff) | |
Auto merge of #3854 - ljedrz:rustc_58992, r=phansch
Align with rust-lang/rust/#58992 Some adjustments needed after the most recent round of HirIdification.
Diffstat (limited to 'clippy_lints/src/utils/internal_lints.rs')
| -rw-r--r-- | clippy_lints/src/utils/internal_lints.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/utils/internal_lints.rs b/clippy_lints/src/utils/internal_lints.rs index 877f431e641..343098ceeee 100644 --- a/clippy_lints/src/utils/internal_lints.rs +++ b/clippy_lints/src/utils/internal_lints.rs @@ -164,8 +164,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LintWithoutLintPass { output: &mut self.registered_lints, cx, }; - let node_id = cx.tcx.hir().hir_to_node_id(impl_item_refs[0].id.hir_id); - let body_id = cx.tcx.hir().body_owned_by(node_id); + let body_id = cx.tcx.hir().body_owned_by(impl_item_refs[0].id.hir_id); collector.visit_expr(&cx.tcx.hir().body(body_id).value); } } |
