diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-25 12:03:24 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-25 12:22:47 +0200 |
| commit | 5b914f6e33eb93e24534714fa7257a5d8fac5533 (patch) | |
| tree | 0e544b705de38390d2602da1b208b1b1c3543c36 | |
| parent | 884ef4c287480704e0176930347563410eb8907f (diff) | |
| download | rust-5b914f6e33eb93e24534714fa7257a5d8fac5533.tar.gz rust-5b914f6e33eb93e24534714fa7257a5d8fac5533.zip | |
Introduce OwnerNode::Crate.
| -rw-r--r-- | clippy_lints/src/missing_doc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_doc.rs b/clippy_lints/src/missing_doc.rs index a46a7407df0..6ad702f8eaf 100644 --- a/clippy_lints/src/missing_doc.rs +++ b/clippy_lints/src/missing_doc.rs @@ -106,7 +106,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.inner, "the", "crate"); + self.check_missing_docs_attrs(cx, attrs, krate.module().inner, "the", "crate"); } fn check_item(&mut self, cx: &LateContext<'tcx>, it: &'tcx hir::Item<'_>) { |
