Do not pass hir::Crate to lints.

This commit is contained in:
Camille GILLOT 2021-09-12 11:58:27 +02:00
parent abc57f63ad
commit faa7d4221b
17 changed files with 32 additions and 33 deletions

View file

@ -584,7 +584,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
self.doc_hidden_stack.pop().expect("empty doc_hidden_stack");
}
fn check_crate(&mut self, cx: &LateContext<'_>, _: &hir::Crate<'_>) {
fn check_crate(&mut self, cx: &LateContext<'_>) {
self.check_missing_docs_attrs(
cx,
CRATE_DEF_ID,