File tree 4 files changed +16
-16
lines changed
tools/unstable-book-gen/src
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -546,9 +546,7 @@ mod dist {
546
546
) ;
547
547
}
548
548
549
- //FIXME(mark-i-m): reinstate this test when things are fixed...
550
- //#[test]
551
- #[ allow( dead_code) ]
549
+ #[ test]
552
550
fn test_docs ( ) {
553
551
// Behavior of `x.py test` doing various documentation tests.
554
552
let mut config = configure ( & [ ] , & [ ] ) ;
Original file line number Diff line number Diff line change @@ -693,6 +693,7 @@ impl Step for UnstableBookGen {
693
693
builder. create_dir ( & out) ;
694
694
builder. remove_dir ( & out) ;
695
695
let mut cmd = builder. tool_cmd ( Tool :: UnstableBookGen ) ;
696
+ cmd. arg ( builder. src . join ( "library" ) ) ;
696
697
cmd. arg ( builder. src . join ( "src" ) ) ;
697
698
cmd. arg ( out) ;
698
699
Original file line number Diff line number Diff line change @@ -106,19 +106,18 @@ impl Step for Linkcheck {
106
106
///
107
107
/// This tool in `src/tools` will verify the validity of all our links in the
108
108
/// 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 ;
112
111
113
- // builder.info(&format!("Linkcheck ({})", host));
112
+ builder. info ( & format ! ( "Linkcheck ({})" , host) ) ;
114
113
115
- // builder.default_doc(None);
114
+ builder. default_doc ( None ) ;
116
115
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
+ ) ;
122
121
}
123
122
124
123
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) {
94
94
}
95
95
96
96
fn 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) ;
99
101
let src_path = Path :: new ( & src_path_str) ;
100
102
let dest_path = Path :: new ( & dest_path_str) ;
101
103
102
104
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 )
104
106
. into_iter ( )
105
107
. filter ( |& ( ref name, _) | !lang_features. contains_key ( name) )
106
108
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments