diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-11-27 17:41:05 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-09 19:27:58 +0100 |
| commit | 6c668266c0d4a949e534bb2770fa3fcc8b64ef1d (patch) | |
| tree | 53713c9bd7cac1f0dd71ce04b0e09bad543f1ff7 /clippy_lints/src/utils | |
| parent | dc9560cfd2e466ffbaf4615197ed4386ccb90c1d (diff) | |
Remove hir::Expr::attrs.
Diffstat (limited to 'clippy_lints/src/utils')
| -rw-r--r-- | clippy_lints/src/utils/inspector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/inspector.rs b/clippy_lints/src/utils/inspector.rs index 07a79592a4a..9e3973e1d51 100644 --- a/clippy_lints/src/utils/inspector.rs +++ b/clippy_lints/src/utils/inspector.rs @@ -89,7 +89,7 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector { // fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) { - if !has_attr(cx.sess(), &expr.attrs) { + if !has_attr(cx.sess(), cx.tcx.hir().attrs(expr.hir_id)) { return; } print_expr(cx, expr, 0); |
