rustdoc: Correctly distinguish enums and types

This is done by adding a new field to the `DefTy` variant of `middle::def::Def`,
which also clarifies an error message in the process.

Closes #16712.
This commit is contained in:
P1start
2014-09-16 09:13:00 +12:00
parent ef4b921599
commit 8b88811419
17 changed files with 57 additions and 37 deletions

View File

@@ -555,7 +555,7 @@
// `rustdoc::html::item_type::ItemType` type in Rust.
var itemTypes = ["mod",
"struct",
"type",
"enum",
"fn",
"type",
"static",