1
Fork 0

rollup merge of #19774: tomjakubowski/rustdoc-consts-statics

Build `clean::ConstantItem` values in the `inline` module and
pretty-print the AST for inlined const items.

Doc strings are still missing from inlined constants (see #19773).

Partially address #18156, #19722, #19185

Fix #15821

r? @alexcrichton
This commit is contained in:
Brian Anderson 2014-12-13 18:23:13 -08:00
commit 3673486c6d
3 changed files with 25 additions and 1 deletions

View file

@ -1201,6 +1201,7 @@ pub enum TypeKind {
TypeEnum,
TypeFunction,
TypeModule,
TypeConst,
TypeStatic,
TypeStruct,
TypeTrait,
@ -1841,7 +1842,7 @@ impl Clean<Item> for doctree::Static {
}
}
#[deriving(Clone, Encodable, Decodable)]
#[deriving(Clone, Encodable, Decodable, Show)]
pub struct Constant {
pub type_: Type,
pub expr: String,