Use cache access levels
This commit is contained in:
parent
e4287992a7
commit
1683cb12e4
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ impl crate::doctest::Tester for Tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
crate fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -> bool {
|
crate fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -> bool {
|
||||||
if !cx.renderinfo.access_levels.is_public(item.def_id)
|
if !cx.cache.access_levels.is_public(item.def_id)
|
||||||
|| matches!(
|
|| matches!(
|
||||||
*item.kind,
|
*item.kind,
|
||||||
clean::StructFieldItem(_)
|
clean::StructFieldItem(_)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue