Merge the BTreeMap in hir::Crate.
This commit is contained in:
parent
0443424954
commit
36a28060f1
14 changed files with 268 additions and 119 deletions
|
@ -570,7 +570,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.inner, "the", "crate");
|
||||
|
||||
for macro_def in krate.exported_macros {
|
||||
for macro_def in krate.exported_macros() {
|
||||
// Non exported macros should be skipped, since `missing_docs` only
|
||||
// applies to externally visible items.
|
||||
if !cx.access_levels.is_exported(macro_def.hir_id()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue