File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
tools/unstable-book-gen/src Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -546,9 +546,7 @@ mod dist {
546546 ) ;
547547 }
548548
549- //FIXME(mark-i-m): reinstate this test when things are fixed...
550- //#[test]
551- #[ allow( dead_code) ]
549+ #[ test]
552550 fn test_docs ( ) {
553551 // Behavior of `x.py test` doing various documentation tests.
554552 let mut config = configure ( & [ ] , & [ ] ) ;
Original file line number Diff line number Diff line change @@ -693,6 +693,7 @@ impl Step for UnstableBookGen {
693693 builder. create_dir ( & out) ;
694694 builder. remove_dir ( & out) ;
695695 let mut cmd = builder. tool_cmd ( Tool :: UnstableBookGen ) ;
696+ cmd. arg ( builder. src . join ( "library" ) ) ;
696697 cmd. arg ( builder. src . join ( "src" ) ) ;
697698 cmd. arg ( out) ;
698699
Original file line number Diff line number Diff line change @@ -106,19 +106,18 @@ impl Step for Linkcheck {
106106 ///
107107 /// This tool in `src/tools` will verify the validity of all our links in the
108108 /// documentation to ensure we don't have a bunch of dead ones.
109- fn run ( self , _builder : & Builder < ' _ > ) {
110- // FIXME(mark-i-m): uncomment this after we fix the links...
111- // let host = self.host;
109+ fn run ( self , builder : & Builder < ' _ > ) {
110+ let host = self . host ;
112111
113- // builder.info(&format!("Linkcheck ({})", host));
112+ builder. info ( & format ! ( "Linkcheck ({})" , host) ) ;
114113
115- // builder.default_doc(None);
114+ builder. default_doc ( None ) ;
116115
117- // let _time = util::timeit(&builder);
118- // try_run(
119- // builder,
120- // builder.tool_cmd(Tool::Linkchecker).arg(builder.out.join(host.triple).join("doc")),
121- // );
116+ let _time = util:: timeit ( & builder) ;
117+ try_run (
118+ builder,
119+ builder. tool_cmd ( Tool :: Linkchecker ) . arg ( builder. out . join ( host. triple ) . join ( "doc" ) ) ,
120+ ) ;
122121 }
123122
124123 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
Original file line number Diff line number Diff line change @@ -94,13 +94,15 @@ fn copy_recursive(from: &Path, to: &Path) {
9494}
9595
9696fn main ( ) {
97- let src_path_str = env:: args_os ( ) . skip ( 1 ) . next ( ) . expect ( "source path required" ) ;
98- let dest_path_str = env:: args_os ( ) . skip ( 2 ) . next ( ) . expect ( "destination path required" ) ;
97+ let library_path_str = env:: args_os ( ) . skip ( 1 ) . next ( ) . expect ( "library path required" ) ;
98+ let src_path_str = env:: args_os ( ) . skip ( 2 ) . next ( ) . expect ( "source path required" ) ;
99+ let dest_path_str = env:: args_os ( ) . skip ( 3 ) . next ( ) . expect ( "destination path required" ) ;
100+ let library_path = Path :: new ( & library_path_str) ;
99101 let src_path = Path :: new ( & src_path_str) ;
100102 let dest_path = Path :: new ( & dest_path_str) ;
101103
102104 let lang_features = collect_lang_features ( src_path, & mut false ) ;
103- let lib_features = collect_lib_features ( src_path )
105+ let lib_features = collect_lib_features ( library_path )
104106 . into_iter ( )
105107 . filter ( |& ( ref name, _) | !lang_features. contains_key ( name) )
106108 . collect ( ) ;
You can’t perform that action at this time.
0 commit comments