-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 3776358
Auto merge of #145812 - karolzwolak:attrs-in-fields-and-variants-section, r=GuillaumeGomez
rustdoc: render attributes in Field and Variants sections
Follow up to #145782.
Render attributes in Field and Variants sections.
Associated constants and methods are already rendered with attributes in their sections, so I figured out fields and variants should too.
(no change here)
<img width="378" height="265" alt="image" src="https://github.com/user-attachments/assets/b4f45c42-0146-486e-8881-138d2a7ad1c4" />
r? `@GuillaumeGomez`
---
Before (left) / after (right):
<img width="396" height="519" alt="image" src="https://github.com/user-attachments/assets/18288e13-09e7-448c-ba98-2023fa6df597" />
<img width="382" height="597" alt="image" src="https://github.com/user-attachments/assets/e624dc84-d169-41cc-bb89-7a1c2b2bb3e3" />
<img width="371" height="313" alt="image" src="https://github.com/user-attachments/assets/29833645-0b93-4900-80a8-c5a1e0b541b4" />
<img width="371" height="331" alt="image" src="https://github.com/user-attachments/assets/d5ce4b9e-f7f1-4f36-8ac0-08b0b5077e48" />
<img width="362" height="309" alt="image" src="https://github.com/user-attachments/assets/0436a51d-29a5-4403-a27c-7697524f807a" />
<img width="357" height="332" alt="image" src="https://github.com/user-attachments/assets/9a759fc5-30e7-4bbb-a88a-a3e3d1ed02aa" />File tree
3 files changed
+26
-4
lines changed- src/librustdoc/html
- render
- templates
- tests/rustdoc
3 files changed
+26
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1460 | 1460 |
| |
1461 | 1461 |
| |
1462 | 1462 |
| |
1463 | + | ||
1464 | + | ||
1465 | + | ||
1466 | + | ||
1467 | + | ||
1468 | + | ||
1469 | + | ||
1463 | 1470 |
| |
1464 | 1471 |
| |
1465 | 1472 |
| |
| |||
1770 | 1777 |
| |
1771 | 1778 |
| |
1772 | 1779 |
| |
1780 | + | ||
1773 | 1781 |
| |
1774 | 1782 |
| |
1775 | 1783 |
| |
| |||
1843 | 1851 |
| |
1844 | 1852 |
| |
1845 | 1853 |
| |
1846 | - | ||
1854 | + | ||
1855 | + | ||
1856 | + | ||
1857 | + | ||
1858 | + | ||
1859 | + | ||
1847 | 1860 |
| |
1848 | 1861 |
| |
1849 | 1862 |
| |
| |||
2079 | 2092 |
| |
2080 | 2093 |
| |
2081 | 2094 |
| |
2082 | - | ||
2095 | + | ||
2096 | + | ||
2097 | + | ||
2098 | + | ||
2099 | + | ||
2100 | + | ||
2101 | + | ||
2083 | 2102 |
| |
2084 | 2103 |
| |
2085 | - | ||
2086 | 2104 |
| |
2087 | 2105 |
| |
2088 | 2106 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
15 | + | ||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | + | ||
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
35 | + | ||
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
39 | + | ||
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
| |||
66 | 69 |
| |
67 | 70 |
| |
68 | 71 |
| |
72 | + | ||
69 | 73 |
| |
70 | 74 |
| |
71 | 75 |
| |
|
0 commit comments