Skip to content

Commit 05dc82a

Browse files
committed
Fix fulldeps tests.
1 parent 700d697 commit 05dc82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ impl<'tcx> LateLintPass<'tcx> for MissingAllowedAttrPass {
4040
_: intravisit::FnKind<'tcx>,
4141
_: &'tcx hir::FnDecl,
4242
_: &'tcx hir::Body,
43-
span: source_map::Span,
4443
id: hir::HirId,
4544
) {
4645
let item = match cx.tcx.hir().get(id) {
@@ -51,6 +50,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingAllowedAttrPass {
5150
let allowed = |attr| pprust::attribute_to_string(attr).contains("allowed_attr");
5251
if !item.attrs.iter().any(allowed) {
5352
cx.lint(MISSING_ALLOWED_ATTR, |lint| {
53+
let span = cx.tcx.hir().span(id);
5454
lint.build("Missing 'allowed_attr' attribute").set_span(span).emit()
5555
});
5656
}

0 commit comments

Comments
 (0)