Treat macros as HIR items
This commit is contained in:
@@ -453,10 +453,6 @@ fn late_lint_pass_crate<'tcx, T: LateLintPass<'tcx>>(tcx: TyCtxt<'tcx>, pass: T)
|
||||
lint_callback!(cx, check_crate, krate);
|
||||
|
||||
hir_visit::walk_crate(cx, krate);
|
||||
for attr in krate.non_exported_macro_attrs {
|
||||
// This HIR ID is a lie, since the macro ID isn't available.
|
||||
cx.visit_attribute(hir::CRATE_HIR_ID, attr);
|
||||
}
|
||||
|
||||
lint_callback!(cx, check_crate_post, krate);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user