Skip to content

Commit 1683cb1

Browse files
Use cache access levels
1 parent e428799 commit 1683cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/passes/doc_test_lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl crate::doctest::Tester for Tests {
5353
}
5454

5555
crate fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -> bool {
56-
if !cx.renderinfo.access_levels.is_public(item.def_id)
56+
if !cx.cache.access_levels.is_public(item.def_id)
5757
|| matches!(
5858
*item.kind,
5959
clean::StructFieldItem(_)

0 commit comments

Comments
 (0)