@@ -1624,20 +1624,21 @@ impl Step for Sysroot {
16241624        let  sysroot_lib_rustlib_src_rust = sysroot_lib_rustlib_src. join ( "rust" ) ; 
16251625        if  let  Err ( e)  = symlink_dir ( & builder. config ,  & builder. src ,  & sysroot_lib_rustlib_src_rust)  { 
16261626            eprintln ! ( 
1627-                 "WARNING : creating symbolic link `{}` to `{}` failed with {}" , 
1627+                 "ERROR : creating symbolic link `{}` to `{}` failed with {}" , 
16281628                sysroot_lib_rustlib_src_rust. display( ) , 
16291629                builder. src. display( ) , 
16301630                e, 
16311631            ) ; 
16321632            if  builder. config . rust_remap_debuginfo  { 
16331633                eprintln ! ( 
1634-                     "WARNING : some `tests/ui` tests will fail when lacking `{}`" , 
1634+                     "ERROR : some `tests/ui` tests will fail when lacking `{}`" , 
16351635                    sysroot_lib_rustlib_src_rust. display( ) , 
16361636                ) ; 
16371637            } 
1638+             build_helper:: exit!( 1 ) ; 
16381639        } 
16391640
1640-         // Unlike rust-src component, we have to handle rustc-src a bit differently, otherwise  
1641+         // Unlike rust-src component, we have to handle rustc-src a bit differently.  
16411642        // When using CI rustc, we need to use it for the rustc-src component. 
16421643        // If not CI rustc, we handle it in a similar way what we do for rust-src above. 
16431644        if  builder. download_rustc ( )  { 
@@ -1654,11 +1655,13 @@ impl Step for Sysroot {
16541655                symlink_dir ( & builder. config ,  & builder. src ,  & sysroot_lib_rustlib_rustcsrc_rust) 
16551656            { 
16561657                eprintln ! ( 
1657-                 "WARNING : creating symbolic link `{}` to `{}` failed with {}", 
1658+                      "ERROR : creating symbolic link `{}` to `{}` failed with {}", 
16581659                    sysroot_lib_rustlib_rustcsrc_rust. display( ) , 
16591660                    builder. src. display( ) , 
16601661                    e, 
16611662                ) ; 
1663+                 build_helper:: exit!( 1 ) ; 
1664+             } 
16621665        } 
16631666
16641667        sysroot
0 commit comments