@@ -619,7 +619,7 @@ impl Step for Rustc {
619619}
620620
621621macro_rules! tool_doc {
622- ( $tool: ident, $should_run: literal, $path: literal, [ $( $krate: literal) ,+ $( , ) ?] , binary=$bin : expr ) => {
622+ ( $tool: ident, $should_run: literal, $path: literal, [ $( $krate: literal) ,+ $( , ) ?] $ ( , ) ? ) => {
623623 #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
624624 pub struct $tool {
625625 stage: u32 ,
@@ -688,9 +688,7 @@ macro_rules! tool_doc {
688688 cargo. arg( "-p" ) . arg( $krate) ;
689689 ) +
690690
691- if !$bin {
692- cargo. rustdocflag( "--document-private-items" ) ;
693- }
691+ cargo. rustdocflag( "--document-private-items" ) ;
694692 cargo. rustdocflag( "--enable-index-page" ) ;
695693 cargo. rustdocflag( "--show-type-layout" ) ;
696694 cargo. rustdocflag( "-Zunstable-options" ) ;
@@ -700,19 +698,12 @@ macro_rules! tool_doc {
700698 }
701699}
702700
703- tool_doc ! (
704- Rustdoc ,
705- "rustdoc-tool" ,
706- "src/tools/rustdoc" ,
707- [ "rustdoc" , "rustdoc-json-types" ] ,
708- binary = false
709- ) ;
701+ tool_doc ! ( Rustdoc , "rustdoc-tool" , "src/tools/rustdoc" , [ "rustdoc" , "rustdoc-json-types" ] ) ;
710702tool_doc ! (
711703 Rustfmt ,
712704 "rustfmt-nightly" ,
713705 "src/tools/rustfmt" ,
714706 [ "rustfmt-nightly" , "rustfmt-config_proc_macro" ] ,
715- binary = true
716707) ;
717708
718709#[ derive( Ord , PartialOrd , Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
0 commit comments