File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -279,3 +279,16 @@ $ rustdoc --test README.md -Z unstable-options --linker foo
279
279
When ` rustdoc ` runs your documentation tests, it needs to compile and link the tests as executables
280
280
before running them. This flag can be used to change the linker used on these executables. It's
281
281
equivalent to passing ` -C linker=foo ` to ` rustc ` .
282
+
283
+ ### ` --sort-modules-by-appearance ` : control how items on module pages are sorted
284
+
285
+ Using this flag looks like this:
286
+
287
+ ``` bash
288
+ $ rustdoc src/lib.rs -Z unstable-options --sort-modules-by-appearance
289
+ ```
290
+
291
+ Ordinarily, when ` rustdoc ` prints items in module pages, it will sort them alphabetically (taking
292
+ some consideration for their stability, and names that end in a number). Giving this flag to
293
+ ` rustdoc ` will disable this sorting and instead make it print the items in the order they appear in
294
+ the source.
You can’t perform that action at this time.
0 commit comments