Closed
Description
Test case:
pub enum A {
/// Long long long
X,
/// Long long long
Y,
/// Long long long
Z,
}
pub struct B {
/// Long long long
pub x: u32,
/// Long long long
pub y: u32,
/// Long long long
pub z: u32,
}
Running rustdoc a.rs
, it produces these webpages:
Note that only the last member is collapsible (has a [-]
). The global collapse control on the top-right corner can still collapse everything (as a result, you can't independently open X and Y after they are collapsed since the control [+]
is missing).
This seems to happen only for 1.19.0+. Same result on Firefox and Chrome.
Real world example:
- https://doc.rust-lang.org/1.18.0/std/io/enum.ErrorKind.html: every variant is collapsible.
- https://doc.rust-lang.org/beta/std/io/enum.ErrorKind.html: only the last variant is collapsible.
$ rustdoc -vV
rustdoc 1.19.0-nightly (03abb1bd7 2017-06-13)
binary: rustdoc
commit-hash: 03abb1bd70ac56e4aba0684bab819892a0157843
commit-date: 2017-06-13
host: x86_64-apple-darwin
release: 1.19.0-nightly
LLVM version: 4.0