Skip to content

Commit

Permalink
Rollup merge of rust-lang#77811 - jyn514:private, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
rustdoc: Make some functions private that don't need to be public

r? @GuillaumeGomez
  • Loading branch information
JohnTitor committed Oct 12, 2020
2 parents 0b162f6 + 83c790f commit 7f4b363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/clean/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit 7f4b363

Please sign in to comment.