about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-05-30 20:35:46 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-05-30 20:35:46 +0530
commit653ce3e52575ef716390b93a180d3db0728a67a0 (patch)
tree90fff5b0c616293f1d430a642b8af4ca96e00899 /src/libsyntax/errors
parent5da602bda3f30a8943dd4d10383bae6d8a77575c (diff)
parentb0c703304204f21ab6964d4b37776e7e5015cf7b (diff)
downloadrust-653ce3e52575ef716390b93a180d3db0728a67a0.tar.gz
rust-653ce3e52575ef716390b93a180d3db0728a67a0.zip
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
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions