Rename first_not_private
into first_non_private
This commit is contained in:
parent
278d15c254
commit
6b56e8e1cf
@ -1500,7 +1500,7 @@ pub(crate) fn clean_middle_assoc_item<'tcx>(
|
|||||||
/// or `doc(hidden)`). If it's not possible, it'll return the "end type".
|
/// or `doc(hidden)`). If it's not possible, it'll return the "end type".
|
||||||
///
|
///
|
||||||
/// If the path is not a re-export or is public, it'll return `None`.
|
/// If the path is not a re-export or is public, it'll return `None`.
|
||||||
fn first_not_private(
|
fn first_non_private(
|
||||||
cx: &mut DocContext<'_>,
|
cx: &mut DocContext<'_>,
|
||||||
hir_id: hir::HirId,
|
hir_id: hir::HirId,
|
||||||
path: &hir::Path<'_>,
|
path: &hir::Path<'_>,
|
||||||
@ -1595,7 +1595,7 @@ fn clean_qpath<'tcx>(hir_ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> Type
|
|||||||
expanded
|
expanded
|
||||||
} else {
|
} else {
|
||||||
// First we check if it's a private re-export.
|
// First we check if it's a private re-export.
|
||||||
let path = if let Some(path) = first_not_private(cx, hir_id, &path) {
|
let path = if let Some(path) = first_non_private(cx, hir_id, &path) {
|
||||||
path
|
path
|
||||||
} else {
|
} else {
|
||||||
clean_path(path, cx)
|
clean_path(path, cx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user