about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-10-13 04:08:00 +0900
committerGitHub <noreply@github.com>2020-10-13 04:08:00 +0900
commitfe0d5b68286b5519876299f518f49bdcc9b9f780 (patch)
treeafa70fa749e377a78bf2a4e0b57418780ac87237
parent71d8c1088607616fcc8c798f4f4bd6156be2fb74 (diff)
parent83c790ffda54c76d1e1ea1139731448f5d4b1bbc (diff)
downloadrust-fe0d5b68286b5519876299f518f49bdcc9b9f780.tar.gz
rust-fe0d5b68286b5519876299f518f49bdcc9b9f780.zip
Rollup merge of #77811 - jyn514:private, r=GuillaumeGomez
rustdoc: Make some functions private that don't need to be public

r? @GuillaumeGomez
-rw-r--r--src/librustdoc/clean/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs
index 913342e2715..cdea5a7af20 100644
--- a/src/librustdoc/clean/utils.rs
+++ b/src/librustdoc/clean/utils.rs
@@ -109,7 +109,7 @@ pub fn get_deprecation(cx: &DocContext<'_>, def_id: DefId) -> Option<Deprecation
     cx.tcx.lookup_deprecation(def_id).clean(cx)
 }
 
-pub fn external_generic_args(
+fn external_generic_args(
     cx: &DocContext<'_>,
     trait_did: Option<DefId>,
     has_self: bool,
@@ -159,7 +159,7 @@ pub fn external_generic_args(
 
 // trait_did should be set to a trait's DefId if called on a TraitRef, in order to sugar
 // from Fn<(A, B,), C> to Fn(A, B) -> C
-pub fn external_path(
+pub(super) fn external_path(
     cx: &DocContext<'_>,
     name: Symbol,
     trait_did: Option<DefId>,