Rename first_not_private into first_non_private

This commit is contained in:
Guillaume Gomez 2023-07-07 16:56:21 +02:00
parent 278d15c254
commit 6b56e8e1cf

View File

@ -1500,7 +1500,7 @@ fn param_eq_arg(param: &GenericParamDef, arg: &GenericArg) -> bool {
/// 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`.
fn first_not_private(
fn first_non_private(
cx: &mut DocContext<'_>,
hir_id: hir::HirId,
path: &hir::Path<'_>,
@ -1595,7 +1595,7 @@ fn clean_qpath<'tcx>(hir_ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> Type
expanded
} else {
// 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
} else {
clean_path(path, cx)