File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_windows_rc/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ pub fn compile_windows_resource_file(
3333 resources_dir. push ( "resources" ) ;
3434 fs:: create_dir_all ( & resources_dir) . unwrap ( ) ;
3535
36- let resource_compiler = find_resource_compiler ( & env :: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) )
37- . expect ( "rc.exe not found " ) ;
36+ let resource_compiler =
37+ find_resource_compiler ( & env :: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ) . expect ( "found rc.exe" ) ;
3838
3939 let mut resource_script = RESOURCE_TEMPLATE . to_string ( ) ;
4040
@@ -49,7 +49,7 @@ pub fn compile_windows_resource_file(
4949
5050 // remove the suffix, if present and parse into [`ResourceVersion`]
5151 let version = parse_version ( rel_version. split ( "-" ) . next ( ) . unwrap_or ( "0.0.0" ) )
52- . expect ( "could not parse CFG_RELEASE version" ) ;
52+ . expect ( "valid CFG_RELEASE version" ) ;
5353
5454 resource_script = resource_script
5555 . replace ( "@RUSTC_FILEDESCRIPTION_STR@" , file_description)
@@ -71,7 +71,7 @@ pub fn compile_windows_resource_file(
7171 . arg ( & res_path)
7272 . arg ( & rc_path)
7373 . status ( )
74- . expect ( "failed to execute rc.exe " ) ;
74+ . expect ( "can execute resource compiler " ) ;
7575 assert ! ( status. success( ) , "rc.exe failed with status {}" , status) ;
7676 assert ! (
7777 res_path. try_exists( ) . unwrap_or( false ) ,
You can’t perform that action at this time.
0 commit comments