diff options
| author | bors <bors@rust-lang.org> | 2021-07-25 11:11:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-25 11:11:02 +0000 |
| commit | 1270ed0aafe4167ef39103dfc8d74596e9a812fe (patch) | |
| tree | dc091a53da8a873b5a8020106052c471cab126bf | |
| parent | 1b8fc8f13d9f3874ae88c482807c24c2218e4179 (diff) | |
| parent | 5b914f6e33eb93e24534714fa7257a5d8fac5533 (diff) | |
| download | rust-1270ed0aafe4167ef39103dfc8d74596e9a812fe.tar.gz rust-1270ed0aafe4167ef39103dfc8d74596e9a812fe.zip | |
Auto merge of #83723 - cjgillot:ownernode, r=petrochenkov
Store all HIR owners in the same container This replaces the previous storage in a BTreeMap for each of Item/ImplItem/TraitItem/ForeignItem. This should allow for a more compact storage. Based on https://github.com/rust-lang/rust/pull/83114
| -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<'_>) { |
