File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
src/bootstrap/src/core/builder Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1551,7 +1551,7 @@ mod snapshot {
1551
1551
}
1552
1552
1553
1553
#[ test]
1554
- fn doc_library_no_std_target ( ) {
1554
+ fn doc_core_no_std_target ( ) {
1555
1555
let ctx = TestCtx :: new ( ) ;
1556
1556
insta:: assert_snapshot!(
1557
1557
ctx. config( "doc" )
@@ -1564,6 +1564,21 @@ mod snapshot {
1564
1564
[doc] std 1 <host> crates=[core]
1565
1565
" ) ;
1566
1566
}
1567
+
1568
+ #[ test]
1569
+ fn doc_library_no_std_target ( ) {
1570
+ let ctx = TestCtx :: new ( ) ;
1571
+ insta:: assert_snapshot!(
1572
+ ctx. config( "doc" )
1573
+ . path( "library" )
1574
+ . override_target_no_std( & host_target( ) )
1575
+ . render_steps( ) , @r"
1576
+ [build] llvm <host>
1577
+ [build] rustc 0 <host> -> rustc 1 <host>
1578
+ [build] rustdoc 0 <host>
1579
+ [doc] std 1 <host> crates=[alloc,core]
1580
+ " ) ;
1581
+ }
1567
1582
}
1568
1583
1569
1584
struct ExecutedSteps {
@@ -1574,6 +1589,7 @@ impl ExecutedSteps {
1574
1589
fn render ( & self ) -> String {
1575
1590
self . render_with ( RenderConfig :: default ( ) )
1576
1591
}
1592
+
1577
1593
fn render_with ( & self , config : RenderConfig ) -> String {
1578
1594
render_steps ( & self . steps , config)
1579
1595
}
You can’t perform that action at this time.
0 commit comments