You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/librustdoc/json/types.rs
+3-2
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,9 @@ pub struct Item {
68
68
/// By default all documented items are public, but you can tell rustdoc to output private items
69
69
/// so this field is needed to differentiate.
70
70
pubvisibility:Visibility,
71
-
/// The full markdown docstring of this item.
72
-
pubdocs:String,
71
+
/// The full markdown docstring of this item. Absent if there is no documentation at all,
72
+
/// Some("") if there is some documentation but it is empty (EG `#[doc = ""]`).
73
+
pubdocs:Option<String>,
73
74
/// This mapping resolves [intra-doc links](https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md) from the docstring to their IDs
74
75
publinks:FxHashMap<String,Id>,
75
76
/// Stringified versions of the attributes on this item (e.g. `"#[inline]"`)
0 commit comments