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 @@ -986,6 +986,7 @@ impl Step for RustdocGUI {
986986 . arg ( "doc" )
987987 . arg ( "--target-dir" )
988988 . arg ( & out_dir)
989+ . env ( "RUSTC_BOOTSTRAP" , "1" )
989990 . env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
990991 . env ( "RUSTC" , builder. rustc ( self . compiler ) )
991992 . current_dir ( path) ;
@@ -1725,6 +1726,8 @@ impl BookTest {
17251726
17261727 let mut rustbook_cmd = builder. tool_cmd ( Tool :: Rustbook ) ;
17271728 let path = builder. src . join ( & self . path ) ;
1729+ // Books often have feature-gated example text.
1730+ rustbook_cmd. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
17281731 rustbook_cmd. env ( "PATH" , new_path) . arg ( "test" ) . arg ( path) ;
17291732 builder. add_rust_test_threads ( & mut rustbook_cmd) ;
17301733 builder. info ( & format ! ( "Testing rustbook {}" , self . path. display( ) ) ) ;
You can’t perform that action at this time.
0 commit comments