From 6b56e8e1cfedadd25c8c0cb6ecd8a4a8640158ff Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 7 Jul 2023 16:56:21 +0200 Subject: [PATCH] Rename `first_not_private` into `first_non_private` --- src/librustdoc/clean/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 17da8bd2d44..ac569130cb2 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -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)