-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 4f4be34
Add support to generate documentation for tests
The new option --document-tests is unstable and documented as such.
In order to use it is needed to add `--cfg test` and in case the tests
are not marked public to add `--document-private-items`.
The implementation hide the auto generate main test function and
constants.1 parent 259fdb5 commit 4f4be34
File tree
20 files changed
+129
-15
lines changed- compiler/rustc_span/src
- src
- doc/rustdoc/src
- librustdoc
- clean
- types
- formats
- html
- render
- static/js
- json
- passes
- tests/run-make/rustdoc-default-output
20 files changed
+129
-15
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
360 | 360 |
| |
361 | 361 |
| |
362 | 362 |
| |
363 | + | ||
363 | 364 |
| |
364 | 365 |
| |
365 | 366 |
| |
|
Lines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
830 | 830 |
| |
831 | 831 |
| |
832 | 832 |
| |
833 | + | ||
834 | + | ||
835 | + | ||
836 | + | ||
837 | + | ||
838 | + | ||
839 | + | ||
840 | + | ||
841 | + | ||
842 | + | ||
843 | + | ||
844 | + | ||
845 | + | ||
846 | + | ||
847 | + | ||
848 | + | ||
849 | + | ||
850 | + | ||
851 | + | ||
852 | + | ||
853 | + | ||
854 | + | ||
855 | + | ||
856 | + | ||
857 | + | ||
858 | + | ||
859 | + | ||
860 | + | ||
861 | + | ||
862 | + | ||
863 | + |
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1048 | 1048 |
| |
1049 | 1049 |
| |
1050 | 1050 |
| |
1051 | - | ||
1051 | + | ||
1052 | + | ||
1053 | + | ||
1054 | + | ||
1055 | + | ||
1052 | 1056 |
| |
1053 | 1057 |
| |
1054 | 1058 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
697 | 697 |
| |
698 | 698 |
| |
699 | 699 |
| |
700 | - | ||
700 | + | ||
701 | + | ||
701 | 702 |
| |
702 | 703 |
| |
703 | 704 |
| |
| |||
874 | 875 |
| |
875 | 876 |
| |
876 | 877 |
| |
878 | + | ||
877 | 879 |
| |
878 | 880 |
| |
879 | 881 |
| |
| |||
934 | 936 |
| |
935 | 937 |
| |
936 | 938 |
| |
939 | + | ||
937 | 940 |
| |
938 | 941 |
| |
939 | 942 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | - | ||
74 | + | ||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
283 | 283 |
| |
284 | 284 |
| |
285 | 285 |
| |
286 | + | ||
287 | + | ||
286 | 288 |
| |
287 | 289 |
| |
288 | 290 |
| |
| |||
806 | 808 |
| |
807 | 809 |
| |
808 | 810 |
| |
811 | + | ||
809 | 812 |
| |
810 | 813 |
| |
811 | 814 |
| |
| |||
880 | 883 |
| |
881 | 884 |
| |
882 | 885 |
| |
886 | + | ||
883 | 887 |
| |
884 | 888 |
| |
885 | 889 |
| |
|
Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
253 | - | ||
253 | + | ||
254 | + | ||
254 | 255 |
| |
255 | 256 |
| |
256 | 257 |
| |
| |||
369 | 370 |
| |
370 | 371 |
| |
371 | 372 |
| |
372 | - | ||
373 | + | ||
374 | + | ||
375 | + | ||
376 | + | ||
377 | + | ||
373 | 378 |
| |
374 | 379 |
| |
375 | 380 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | + | ||
82 | 83 |
| |
83 | 84 |
| |
84 | 85 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
95 | 100 |
| |
96 | 101 |
| |
97 | 102 |
| |
| |||
144 | 149 |
| |
145 | 150 |
| |
146 | 151 |
| |
147 | - | ||
148 | - | ||
152 | + | ||
153 | + | ||
149 | 154 |
| |
150 | 155 |
| |
151 | 156 |
| |
| |||
302 | 307 |
| |
303 | 308 |
| |
304 | 309 |
| |
310 | + | ||
305 | 311 |
| |
306 | 312 |
| |
307 | 313 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 | + | ||
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
| |||
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
87 | + | ||
86 | 88 |
| |
87 | 89 |
| |
88 | 90 |
| |
| |||
178 | 180 |
| |
179 | 181 |
| |
180 | 182 |
| |
183 | + | ||
181 | 184 |
| |
182 | 185 |
| |
183 | 186 |
| |
|
0 commit comments