Commit 7f20af0
committed
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.1 file changed
+25
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| |||
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1793 | 1795 | | |
1794 | 1796 | | |
1795 | 1797 | | |
1796 | 1798 | | |
1797 | 1799 | | |
1798 | 1800 | | |
1799 | 1801 | | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
1804 | 1807 | | |
1805 | 1808 | | |
1806 | 1809 | | |
| |||
1921 | 1924 | | |
1922 | 1925 | | |
1923 | 1926 | | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
1928 | | - | |
1929 | | - | |
1930 | | - | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
1935 | 1940 | | |
1936 | 1941 | | |
1937 | 1942 | | |
| |||
2044 | 2049 | | |
2045 | 2050 | | |
2046 | 2051 | | |
2047 | | - | |
2048 | | - | |
2049 | 2052 | | |
2050 | 2053 | | |
2051 | 2054 | | |
| |||
2175 | 2178 | | |
2176 | 2179 | | |
2177 | 2180 | | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
| 2181 | + | |
2181 | 2182 | | |
2182 | 2183 | | |
2183 | 2184 | | |
| |||
0 commit comments