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 {
964964 . arg ( "doc" )
965965 . arg ( "--target-dir" )
966966 . arg ( & out_dir)
967+ . env ( "RUSTC_BOOTSTRAP" , "1" )
967968 . env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
968969 . env ( "RUSTC" , builder. rustc ( self . compiler ) )
969970 . current_dir ( path) ;
@@ -1699,6 +1700,8 @@ impl BookTest {
16991700
17001701 let mut rustbook_cmd = builder. tool_cmd ( Tool :: Rustbook ) ;
17011702 let path = builder. src . join ( & self . path ) ;
1703+ // Books often have feature-gated example text.
1704+ rustbook_cmd. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
17021705 rustbook_cmd. env ( "PATH" , new_path) . arg ( "test" ) . arg ( path) ;
17031706 builder. add_rust_test_threads ( & mut rustbook_cmd) ;
17041707 builder. info ( & format ! ( "Testing rustbook {}" , self . path. display( ) ) ) ;
You can’t perform that action at this time.
0 commit comments