1
Fork 0

rustdoc: Properly inline const items

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
This commit is contained in:
Tom Jakubowski 2014-12-12 04:13:36 -08:00
parent d2e2bd1b44
commit 25223c8ef8
3 changed files with 25 additions and 1 deletions

View file

@ -76,6 +76,7 @@ impl ItemType {
clean::TypeTrait => ItemType::Trait,
clean::TypeModule => ItemType::Module,
clean::TypeStatic => ItemType::Static,
clean::TypeConst => ItemType::Constant,
clean::TypeVariant => ItemType::Variant,
clean::TypeTypedef => ItemType::Typedef,
}