Do not pass hir::Crate to lints.
This commit is contained in:
parent
abc57f63ad
commit
faa7d4221b
17 changed files with 32 additions and 33 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue