]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/format.rs
Generate docs for links to private items when passed --document-private
[rust.git] / src / librustdoc / html / format.rs
index e60ff37fd279aa9725c27cc43232b1d086a6c5c0..a453a8b3dcb2ae23cec835fe71c990c960740a9d 100644 (file)
@@ -468,7 +468,7 @@ impl clean::Path {
 
 pub fn href(did: DefId) -> Option<(String, ItemType, Vec<String>)> {
     let cache = cache();
-    if !did.is_local() && !cache.access_levels.is_public(did) {
+    if !did.is_local() && !cache.access_levels.is_public(did) && !cache.document_private {
         return None;
     }