Skip to content

Commit

Permalink
Rebase fallout.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Mar 9, 2021
1 parent 38d9d09 commit 77c0f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingAllowedAttrPass {
};

let allowed = |attr| pprust::attribute_to_string(attr).contains("allowed_attr");
if !cx.tcx.hir().attrs(item.hir_id).iter().any(allowed) {
if !cx.tcx.hir().attrs(item.hir_id()).iter().any(allowed) {
cx.lint(MISSING_ALLOWED_ATTR, |lint| {
lint.build("Missing 'allowed_attr' attribute").set_span(span).emit()
});
Expand Down

0 comments on commit 77c0f21

Please sign in to comment.