File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1005,7 +1005,7 @@ macro_rules! tool_doc {
1005
1005
}
1006
1006
Mode :: ToolTarget => {
1007
1007
// target tools should be documented with the in-tree compiler
1008
- prepare_doc_compiler( run. builder, run. builder. host_target, 2 )
1008
+ prepare_doc_compiler( run. builder, run. builder. host_target, run . builder . top_stage )
1009
1009
}
1010
1010
_ => {
1011
1011
panic!( "Unexpected tool mode for documenting: {:?}" , $mode) ;
Original file line number Diff line number Diff line change @@ -2463,12 +2463,25 @@ mod snapshot {
2463
2463
}
2464
2464
2465
2465
#[ test]
2466
- fn doc_cargo ( ) {
2466
+ fn doc_cargo_stage_1 ( ) {
2467
2467
let ctx = TestCtx :: new ( ) ;
2468
2468
insta:: assert_snapshot!(
2469
2469
ctx. config( "doc" )
2470
2470
. path( "cargo" )
2471
2471
. render_steps( ) , @r"
2472
+ [build] rustdoc 0 <host>
2473
+ [doc] rustc 0 <host> -> Cargo 1 <host>
2474
+ " ) ;
2475
+ }
2476
+
2477
+ #[ test]
2478
+ fn doc_cargo_stage_2 ( ) {
2479
+ let ctx = TestCtx :: new ( ) ;
2480
+ insta:: assert_snapshot!(
2481
+ ctx. config( "doc" )
2482
+ . path( "cargo" )
2483
+ . stage( 2 )
2484
+ . render_steps( ) , @r"
2472
2485
[build] llvm <host>
2473
2486
[build] rustc 0 <host> -> rustc 1 <host>
2474
2487
[build] rustc 1 <host> -> std 1 <host>
You can’t perform that action at this time.
0 commit comments