@@ -1051,7 +1051,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
1051
1051
"perform LLVM link-time optimizations" ) ,
1052
1052
target_cpu: Option <String > = ( None , parse_opt_string, [ TRACKED ] ,
1053
1053
"select target processor (rustc --print target-cpus for details)" ) ,
1054
- target_feature: String = ( "" . to_string ( ) , parse_string, [ TRACKED ] ,
1054
+ target_feature: String = ( String :: new ( ) , parse_string, [ TRACKED ] ,
1055
1055
"target specific attributes (rustc --print target-features for details)" ) ,
1056
1056
passes: Vec <String > = ( Vec :: new( ) , parse_list, [ TRACKED ] ,
1057
1057
"a list of extra LLVM passes to run (space separated)" ) ,
@@ -1085,7 +1085,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
1085
1085
"choose the code model to use (rustc --print code-models for details)" ) ,
1086
1086
metadata: Vec <String > = ( Vec :: new( ) , parse_list, [ TRACKED ] ,
1087
1087
"metadata to mangle symbol names with" ) ,
1088
- extra_filename: String = ( "" . to_string ( ) , parse_string, [ UNTRACKED ] ,
1088
+ extra_filename: String = ( String :: new ( ) , parse_string, [ UNTRACKED ] ,
1089
1089
"extra data to put in each output filename" ) ,
1090
1090
codegen_units: Option <usize > = ( None , parse_opt_uint, [ UNTRACKED ] ,
1091
1091
"divide crate into N units to optimize in parallel" ) ,
@@ -1992,7 +1992,7 @@ pub fn build_session_options_and_crate_config(
1992
1992
} ;
1993
1993
if cg. target_feature == "help" {
1994
1994
prints. push ( PrintRequest :: TargetFeatures ) ;
1995
- cg. target_feature = "" . to_string ( ) ;
1995
+ cg. target_feature = String :: new ( ) ;
1996
1996
}
1997
1997
if cg. relocation_model . as_ref ( ) . map_or ( false , |s| s == "help" ) {
1998
1998
prints. push ( PrintRequest :: RelocationModels ) ;
0 commit comments