]> git.lizzy.rs Git - rust.git/commit
Auto merge of #51527 - kennytm:do-not-auto-hide-inherent-impl, r=GuillaumeGomez
authorbors <bors@rust-lang.org>
Wed, 13 Jun 2018 10:03:05 +0000 (10:03 +0000)
committerbors <bors@rust-lang.org>
Wed, 13 Jun 2018 10:03:05 +0000 (10:03 +0000)
commit7f20af002e33a3f38b51a7e3f9c63bcae4214613
tree07088a06b0145fe96d3f1f1a0ff808031a53b070
parent8398ab82e5d6623f49f054af848f1553f429d307
parentca65a5e485761ed06e88756d9066156109b0755f
Auto merge of #51527 - kennytm:do-not-auto-hide-inherent-impl, r=GuillaumeGomez

Don't auto-hide inherent impls even if `rustdoc-collapse == true`.

This PR changes the auto-collapse behavior when a page is first loaded:

* Inherent impls will never be collapsed by default (new behavior).
* Trait impls will always be collapsed by default, same as before.
* Other items are collapsed according to localStorage, same as before.

This should be much more useful since there is no hint what the content of a collapsed inherent impl would be (try to collapse everything in https://doc.rust-lang.org/std/vec/struct.Vec.html and guess where a method like `try_reserve` or `splice` would be).

Manually clicking the global [-]/[+] will still collapse/expand everything.