Remove hir::CrateItem.
This commit is contained in:
parent
16156fb278
commit
9d8f833e05
15 changed files with 26 additions and 40 deletions
|
@ -565,7 +565,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
|
|||
}
|
||||
|
||||
fn check_crate(&mut self, cx: &LateContext<'_>, krate: &hir::Crate<'_>) {
|
||||
self.check_missing_docs_attrs(cx, hir::CRATE_HIR_ID, krate.item.span, "the", "crate");
|
||||
self.check_missing_docs_attrs(cx, hir::CRATE_HIR_ID, krate.item.inner, "the", "crate");
|
||||
|
||||
for macro_def in krate.exported_macros {
|
||||
let attrs = cx.tcx.hir().attrs(macro_def.hir_id());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue