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 @@ -983,6 +983,7 @@ impl Step for RustdocGUI {
983983 . arg ( "doc" )
984984 . arg ( "--target-dir" )
985985 . arg ( & out_dir)
986+ . env ( "RUSTC_BOOTSTRAP" , "1" )
986987 . env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
987988 . env ( "RUSTC" , builder. rustc ( self . compiler ) )
988989 . current_dir ( path) ;
@@ -1722,6 +1723,8 @@ impl BookTest {
17221723
17231724 let mut rustbook_cmd = builder. tool_cmd ( Tool :: Rustbook ) ;
17241725 let path = builder. src . join ( & self . path ) ;
1726+ // Books often have feature-gated example text.
1727+ rustbook_cmd. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
17251728 rustbook_cmd. env ( "PATH" , new_path) . arg ( "test" ) . arg ( path) ;
17261729 builder. add_rust_test_threads ( & mut rustbook_cmd) ;
17271730 builder. info ( & format ! ( "Testing rustbook {}" , self . path. display( ) ) ) ;
You can’t perform that action at this time.
0 commit comments