Skip to content

Commit d4e9f09

Browse files
committed
rustdoc: Add brief and desc fields to constdoc
1 parent f9a6b37 commit d4e9f09

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/rustdoc/doc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ type moddoc = ~{
2020
type constdoc = ~{
2121
id: ast_id,
2222
name: str,
23+
brief: option<str>,
24+
desc: option<str>,
2325
ty: option<str>
2426
};
2527

src/rustdoc/extract.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ fn constdoc_from_const(
128128
~{
129129
id: id,
130130
name: name,
131+
brief: none,
132+
desc: none,
131133
ty: none
132134
}
133135
}

0 commit comments

Comments
 (0)