Remove hir::CrateItem.
This commit is contained in:
parent
a57a8c3058
commit
d121b34e99
2 changed files with 6 additions and 6 deletions
|
|
@ -128,7 +128,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
|
|||
|
||||
fn check_crate(&mut self, cx: &LateContext<'tcx>, krate: &'tcx hir::Crate<'_>) {
|
||||
let attrs = cx.tcx.hir().attrs(hir::CRATE_HIR_ID);
|
||||
self.check_missing_docs_attrs(cx, attrs, krate.item.span, "the", "crate");
|
||||
self.check_missing_docs_attrs(cx, attrs, krate.item.inner, "the", "crate");
|
||||
}
|
||||
|
||||
fn check_item(&mut self, cx: &LateContext<'tcx>, it: &'tcx hir::Item<'_>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue