rust/src/librustdoc
Manish Goregaokar 653ce3e525 Rollup merge of #33867 - oli-obk:rustdoc_variant_types, r=GuillaumeGomez
print enum variant fields in docs

Right now we are repeating enum variants at the top, because the fields aren't shown with the actual docs. It's very annoying to have to scroll up and down to have both docs and field info. For struct variants we already list the fields.

enum docs look like this after this PR:

![screenshot from 2016-05-25 14-02-42](https://cloud.githubusercontent.com/assets/332036/15539231/84b018cc-2281-11e6-9666-1063655931f4.png)

There are degenerate cases for enum tuple variants with lots of fields:

![screenshot from 2016-05-25 14-01-00](https://cloud.githubusercontent.com/assets/332036/15539260/91e537ca-2281-11e6-8bf1-a3d6b2e78f65.png)

I was thinking that we could move the docs below the variant (slightly indented) or list the variant fields vertically instead of horizontally

r? @steveklabnik
2016-05-30 20:35:46 +05:30
..
clean Separate bindings from other patterns in HIR 2016-05-28 00:54:29 +03:00
html Rollup merge of #33867 - oli-obk:rustdoc_variant_types, r=GuillaumeGomez 2016-05-30 20:35:46 +05:30
build.rs bootstrap: Add directives to not double-link libs 2016-02-11 11:12:32 -08:00
Cargo.toml rustc: move rustc_front to rustc::hir. 2016-04-06 09:01:55 +03:00
core.rs Auto merge of #33702 - crimsun:pr33678, r=alexcrichton 2016-05-19 05:48:11 -07:00
doctree.rs Linkify extern crates on rustdoc pages 2016-04-25 11:26:33 +02:00
externalfiles.rs try! -> ? 2016-03-22 22:01:37 -05:00
flock.rs Rename sunos to solaris 2016-01-31 19:01:30 +03:00
fold.rs Make the rendering process less pass-aware 2016-04-02 12:00:55 +02:00
lib.rs Perform doc-reachability check for inlined impls 2016-04-18 01:55:54 +02:00
markdown.rs Don't initialize id-map when rendering md files 2016-03-27 00:21:01 +01:00
passes.rs rustdoc: do not strip blanket impls in crate of origin 2016-05-09 16:50:47 +02:00
plugins.rs Remove rustdocs json format 2016-04-07 06:01:55 +02:00
test.rs * Fix compile_fail tag (in some cases, it compiled whereas it wasn't expected to and was still considered 'ok') 2016-05-27 00:39:57 +02:00
visit_ast.rs rustc: Avoid free functions taking &TyCtxt and &InferCtxt. 2016-05-11 04:14:58 +03:00
visit_lib.rs Linkify extern crates on rustdoc pages 2016-04-25 11:26:33 +02:00