Fix empty dom toggle by GuillaumeGomez · Pull Request #84616 · rust-lang/rust (original) (raw)
Currently, the empty impl blocks have toggles:
So when you expand it, nothing happens:
So now, in case the impl block is empty, we simply don't generate the details/summary wrapping (which also makes DOM lighter, yeay!):
r? @jsha