Skip to content

Commit

Permalink
Fix fulldeps tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Jan 6, 2021
1 parent 700d697 commit 05dc82a
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 @@ -40,7 +40,6 @@ impl<'tcx> LateLintPass<'tcx> for MissingAllowedAttrPass {
_: intravisit::FnKind<'tcx>,
_: &'tcx hir::FnDecl,
_: &'tcx hir::Body,
span: source_map::Span,
id: hir::HirId,
) {
let item = match cx.tcx.hir().get(id) {
Expand All @@ -51,6 +50,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingAllowedAttrPass {
let allowed = |attr| pprust::attribute_to_string(attr).contains("allowed_attr");
if !item.attrs.iter().any(allowed) {
cx.lint(MISSING_ALLOWED_ATTR, |lint| {
let span = cx.tcx.hir().span(id);
lint.build("Missing 'allowed_attr' attribute").set_span(span).emit()
});
}
Expand Down

0 comments on commit 05dc82a

Please sign in to comment.