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/missing_inline.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/missing_inline.rs')
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index 82c5b62145b..87bf3b5485f 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -115,7 +115,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingInline { // trait method with default body needs inline in case // an impl is not provided let desc = "a default trait method"; - let item = cx.tcx.hir().expect_trait_item_by_hir_id(tit.id.hir_id); + let item = cx.tcx.hir().expect_trait_item(tit.id.hir_id); check_missing_inline_attrs(cx, &item.attrs, item.span, desc); } }, |
