about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-14 04:57:47 -0700
committerGitHub <noreply@github.com>2016-09-14 04:57:47 -0700
commit97b561a0944141a02a0cebe577c3c69e436abcf4 (patch)
tree6bd4298d50a67c2772db7e1cc4b44a870dfb31ea /src/rustllvm/RustWrapper.cpp
parent739d57180fa207410b8858f8cede7b8a9ea6f01e (diff)
parent8154a6bc69b42813ffda91adcefd9f277338acf3 (diff)
downloadrust-97b561a0944141a02a0cebe577c3c69e436abcf4.tar.gz
rust-97b561a0944141a02a0cebe577c3c69e436abcf4.zip
Auto merge of #35667 - ollie27:rustdoc_opaque_structs, r=steveklabnik
rustdoc: Don't add extra newlines for fully opaque structs

Changes the definition for braced structs with only private or hidden fields to save space on the page.

Before:
```
pub struct Vec<T> {
    // some fields omitted
}
```
After:
```
pub struct Vec<T> { /* fields omitted */ }
```

This also cleans up empty braced structs.

Before:
```
pub struct Foo {
}
```
After:
```
pub struct Foo {}
```

[before](https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html) [after](https://ollie27.github.io/rust_doc_test/std/vec/struct.Vec.html)

cc #34713
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions