File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -613,9 +613,14 @@ mod dist {
613
613
// Note that the stages here are +1 than what they actually are because
614
614
// Rustdoc::run swaps out the compiler with stage minus 1 if --stage is
615
615
// not 0.
616
+ //
617
+ // The stage 0 copy is the one downloaded for bootstrapping. It is
618
+ // (currently) needed to run "cargo test" on the linkchecker, and
619
+ // should be relatively "free".
616
620
assert_eq ! (
617
621
first( builder. cache. all:: <tool:: Rustdoc >( ) ) ,
618
622
& [
623
+ tool:: Rustdoc { compiler: Compiler { host: a, stage: 0 } } ,
619
624
tool:: Rustdoc { compiler: Compiler { host: a, stage: 1 } } ,
620
625
tool:: Rustdoc { compiler: Compiler { host: a, stage: 2 } } ,
621
626
]
Original file line number Diff line number Diff line change @@ -124,8 +124,25 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
124
124
125
125
builder. info ( & format ! ( "Linkcheck ({})" , host) ) ;
126
126
127
+ // Test the linkchecker itself.
128
+ let bootstrap_host = builder. config . build ;
129
+ let compiler = builder. compiler ( 0 , bootstrap_host) ;
130
+ let cargo = tool:: prepare_tool_cargo (
131
+ builder,
132
+ compiler,
133
+ Mode :: ToolBootstrap ,
134
+ bootstrap_host,
135
+ "test" ,
136
+ "src/tools/linkchecker" ,
137
+ SourceType :: InTree ,
138
+ & [ ] ,
139
+ ) ;
140
+ try_run ( builder, & mut cargo. into ( ) ) ;
141
+
142
+ // Build all the default documentation.
127
143
builder. default_doc ( & [ ] ) ;
128
144
145
+ // Run the linkchecker.
129
146
let _time = util:: timeit ( & builder) ;
130
147
try_run (
131
148
builder,
You can’t perform that action at this time.
0 commit comments