about summary refs log tree commit diff
path: root/src/libtest/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-29 03:20:54 +0000
committerbors <bors@rust-lang.org>2018-07-29 03:20:54 +0000
commitfb0653e40289eecf32f3fac1e84fc69b815ce5cb (patch)
tree2e8fcbaef638f7e5ed9295197729f9a4dd1d30e3 /src/libtest/lib.rs
parent6a2c97c38d297307dd8554853890f51144f62172 (diff)
parent0db4317709cdd84c8a4cc1dc01d1f8af673bdd21 (diff)
downloadrust-fb0653e40289eecf32f3fac1e84fc69b815ce5cb.tar.gz
rust-fb0653e40289eecf32f3fac1e84fc69b815ce5cb.zip
Auto merge of #52751 - QuietMisdreavus:you-shall-not-pass, r=GuillaumeGomez
rustdoc: rework how default passes are chosen

This is a refactor that changes how we select default passes, and changes the set of passes used for `--document-private-items`. It's groundwork for a bigger refactor i want to do.

The major changes:

* There are now two sets of "default passes": one set for "no flags given" and one for "document private items".
* These sets can be selected by a new `DefaultPassOption` enum, which is selected from based on the presence of `--no-defaults` or `--document-private-items` CLI flags, or their associated crate attributes.
* When printing the list of passes, we also print the list of passes for `--document-private-items` in addition to the "default defaults".
* I added `propagate-doc-cfg` and `strip-priv-imports` to the "document private items" set. The former is to ensure items are properly tagged with the full set of cfg flags even when "document private items" is active. The latter is based on feedback and personal experience navigating the `rustc` docs, which use that flag. `strip-priv-imports` only removes non-pub `use` statements, so it should be harmless from a documentation standpoint to remove those items from "private items" documentation.
Diffstat (limited to 'src/libtest/lib.rs')
0 files changed, 0 insertions, 0 deletions