diff options
| author | bors <bors@rust-lang.org> | 2021-08-17 04:18:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-17 04:18:55 +0000 |
| commit | 3b5df014390dcef66cc35f968fe51e9558e6ca13 (patch) | |
| tree | 642e21f8d8f6da7b692123aeaed9898845cb75e2 /src/bootstrap | |
| parent | a183141e2d0f0af7f12946ff1a81615fa35e8099 (diff) | |
| parent | 6216b4ece4468b139d6a09d731ff402533f628c3 (diff) | |
| download | rust-3b5df014390dcef66cc35f968fe51e9558e6ca13.tar.gz rust-3b5df014390dcef66cc35f968fe51e9558e6ca13.zip | |
Auto merge of #87119 - jyn514:rustfmt-doc-private, r=Mark-Simulacrum
Document private items for rustfmt This is possible now that https://github.com/rust-lang/rust/pull/73936 has been merged.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/doc.rs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 9ec5d4d8ccd..c8714117930 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -619,7 +619,7 @@ impl Step for Rustc { } macro_rules! tool_doc { - ($tool: ident, $should_run: literal, $path: literal, [$($krate: literal),+ $(,)?], binary=$bin:expr) => { + ($tool: ident, $should_run: literal, $path: literal, [$($krate: literal),+ $(,)?] $(,)?) => { #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct $tool { stage: u32, @@ -688,9 +688,7 @@ macro_rules! tool_doc { cargo.arg("-p").arg($krate); )+ - if !$bin { - cargo.rustdocflag("--document-private-items"); - } + cargo.rustdocflag("--document-private-items"); cargo.rustdocflag("--enable-index-page"); cargo.rustdocflag("--show-type-layout"); cargo.rustdocflag("-Zunstable-options"); @@ -700,19 +698,12 @@ macro_rules! tool_doc { } } -tool_doc!( - Rustdoc, - "rustdoc-tool", - "src/tools/rustdoc", - ["rustdoc", "rustdoc-json-types"], - binary = false -); +tool_doc!(Rustdoc, "rustdoc-tool", "src/tools/rustdoc", ["rustdoc", "rustdoc-json-types"]); tool_doc!( Rustfmt, "rustfmt-nightly", "src/tools/rustfmt", ["rustfmt-nightly", "rustfmt-config_proc_macro"], - binary = true ); #[derive(Ord, PartialOrd, Debug, Copy, Clone, Hash, PartialEq, Eq)] |
