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 {
986
986
. arg ( "doc" )
987
987
. arg ( "--target-dir" )
988
988
. arg ( & out_dir)
989
+ . env ( "RUSTC_BOOTSTRAP" , "1" )
989
990
. env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
990
991
. env ( "RUSTC" , builder. rustc ( self . compiler ) )
991
992
. current_dir ( path) ;
@@ -1725,6 +1726,8 @@ impl BookTest {
1725
1726
1726
1727
let mut rustbook_cmd = builder. tool_cmd ( Tool :: Rustbook ) ;
1727
1728
let path = builder. src . join ( & self . path ) ;
1729
+ // Books often have feature-gated example text.
1730
+ rustbook_cmd. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
1728
1731
rustbook_cmd. env ( "PATH" , new_path) . arg ( "test" ) . arg ( path) ;
1729
1732
builder. add_rust_test_threads ( & mut rustbook_cmd) ;
1730
1733
builder. info ( & format ! ( "Testing rustbook {}" , self . path. display( ) ) ) ;
You can’t perform that action at this time.
0 commit comments