@@ -330,7 +330,7 @@ the source.
330
330
331
331
## ` --show-type-layout ` : add a section to each type's docs describing its memory layout
332
332
333
- * Tracking issue: [ #113248 ] ( https://github.com/rust-lang/rust/issues/113248 )
333
+ * Tracking issue: [ #113248 ] ( https://github.com/rust-lang/rust/issues/113248 )
334
334
335
335
Using this flag looks like this:
336
336
@@ -526,9 +526,10 @@ use `-o -`.
526
526
527
527
### json
528
528
529
+ * Tracking Issue: [ #76578 ] ( https://github.com/rust-lang/rust/issues/76578 )
530
+
529
531
` --output-format json ` emits documentation in the experimental
530
- [ JSON format] ( https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc_json_types/ ) . ` --output-format html ` has no effect,
531
- and is also accepted on stable toolchains.
532
+ [ JSON format] ( https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc_json_types/ ) .
532
533
533
534
JSON Output for toolchain crates (` std ` , ` alloc ` , ` core ` , ` test ` , and ` proc_macro ` )
534
535
is available via the ` rust-docs-json ` rustup component.
@@ -546,11 +547,11 @@ information.
546
547
547
548
### doctest
548
549
550
+ * Tracking issue: [ #134529 ] ( https://github.com/rust-lang/rust/issues/134529 )
551
+
549
552
` --output-format doctest ` emits JSON on stdout which gives you information about doctests in the
550
553
provided crate.
551
554
552
- Tracking issue: [ #134529 ] ( https://github.com/rust-lang/rust/issues/134529 )
553
-
554
555
You can use this option like this:
555
556
556
557
``` bash
@@ -606,6 +607,11 @@ The generated output (formatted) will look like this:
606
607
* ` doctest_code ` is the code modified by rustdoc that will be run. If there is a fatal syntax error, this field will not be present.
607
608
* ` name ` is the name generated by rustdoc which represents this doctest.
608
609
610
+ ### html
611
+
612
+ ` --output-format html ` has no effect, as the default output is HTML. This is
613
+ accepted on stable, even though the other options for this flag aren't.
614
+
609
615
## ` --enable-per-target-ignores ` : allow ` ignore-foo ` style filters for doctests
610
616
611
617
* Tracking issue: [ #64245 ] ( https://github.com/rust-lang/rust/issues/64245 )
0 commit comments