diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-01-24 13:17:54 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-09 19:27:50 +0100 |
| commit | dc9560cfd2e466ffbaf4615197ed4386ccb90c1d (patch) | |
| tree | 4c4b4842c3af35a36644de40cef834c7f6c5caeb /clippy_lints/src/missing_inline.rs | |
| parent | 49835d8abf93ca0d3249d7f534963fe28313aa18 (diff) | |
| download | rust-dc9560cfd2e466ffbaf4615197ed4386ccb90c1d.tar.gz rust-dc9560cfd2e466ffbaf4615197ed4386ccb90c1d.zip | |
Remove hir::Item::attrs.
Diffstat (limited to 'clippy_lints/src/missing_inline.rs')
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index c915e329087..9b604471573 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -93,7 +93,8 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline { match it.kind { hir::ItemKind::Fn(..) => { let desc = "a function"; - check_missing_inline_attrs(cx, &it.attrs, it.span, desc); + let attrs = cx.tcx.hir().attrs(it.hir_id()); + check_missing_inline_attrs(cx, attrs, it.span, desc); }, hir::ItemKind::Trait(ref _is_auto, ref _unsafe, ref _generics, ref _bounds, trait_items) => { // note: we need to check if the trait is exported so we can't use |
