about summary refs log tree commit diff
path: root/src/test/rustdoc/issue-32395.rs
AgeCommit message (Collapse)AuthorLines
2020-11-17Add `from_def_id_and_kind` reducing duplication in rustdocJoshua Nelson-0/+2
- Add `Item::from_hir_id_and_kind` convenience wrapper - Make name parameter mandatory `tcx.opt_item_name` doesn't handle renames, so this is necessary for any item that could be renamed, which is almost all of them. - Override visibilities to be `Inherited` for enum variants `tcx.visibility` returns the effective visibility, not the visibility that was written in the source code. `pub enum E { A, B }` always has public variants `A` and `B`, so there's no sense printing `pub` again. - Don't duplicate handling of `Visibility::Crate` Instead, represent it as just another `Restricted` path.
2018-12-25Remove licensesMark Rousskov-10/+0
2016-03-27Load struct-variant data correctly from metadatamitaa-0/+2
2016-03-22Omit `pub` for inlined variant-struct fieldsmitaa-0/+21