File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -964,6 +964,7 @@ impl Step for RustdocGUI {
964
964
. arg ( "doc" )
965
965
. arg ( "--target-dir" )
966
966
. arg ( & out_dir)
967
+ . env ( "RUSTC_BOOTSTRAP" , "1" )
967
968
. env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
968
969
. env ( "RUSTC" , builder. rustc ( self . compiler ) )
969
970
. current_dir ( path) ;
@@ -1699,6 +1700,8 @@ impl BookTest {
1699
1700
1700
1701
let mut rustbook_cmd = builder. tool_cmd ( Tool :: Rustbook ) ;
1701
1702
let path = builder. src . join ( & self . path ) ;
1703
+ // Books often have feature-gated example text.
1704
+ rustbook_cmd. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
1702
1705
rustbook_cmd. env ( "PATH" , new_path) . arg ( "test" ) . arg ( path) ;
1703
1706
builder. add_rust_test_threads ( & mut rustbook_cmd) ;
1704
1707
builder. info ( & format ! ( "Testing rustbook {}" , self . path. display( ) ) ) ;
You can’t perform that action at this time.
0 commit comments