diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-13 04:08:00 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-13 04:08:00 +0900 |
| commit | fe0d5b68286b5519876299f518f49bdcc9b9f780 (patch) | |
| tree | afa70fa749e377a78bf2a4e0b57418780ac87237 | |
| parent | 71d8c1088607616fcc8c798f4f4bd6156be2fb74 (diff) | |
| parent | 83c790ffda54c76d1e1ea1139731448f5d4b1bbc (diff) | |
| download | rust-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.rs | 4 |
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>, |
