@@ -1051,7 +1051,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
10511051 "perform LLVM link-time optimizations" ) ,
10521052 target_cpu: Option <String > = ( None , parse_opt_string, [ TRACKED ] ,
10531053 "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 ] ,
10551055 "target specific attributes (rustc --print target-features for details)" ) ,
10561056 passes: Vec <String > = ( Vec :: new( ) , parse_list, [ TRACKED ] ,
10571057 "a list of extra LLVM passes to run (space separated)" ) ,
@@ -1085,7 +1085,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
10851085 "choose the code model to use (rustc --print code-models for details)" ) ,
10861086 metadata: Vec <String > = ( Vec :: new( ) , parse_list, [ TRACKED ] ,
10871087 "metadata to mangle symbol names with" ) ,
1088- extra_filename: String = ( "" . to_string ( ) , parse_string, [ UNTRACKED ] ,
1088+ extra_filename: String = ( String :: new ( ) , parse_string, [ UNTRACKED ] ,
10891089 "extra data to put in each output filename" ) ,
10901090 codegen_units: Option <usize > = ( None , parse_opt_uint, [ UNTRACKED ] ,
10911091 "divide crate into N units to optimize in parallel" ) ,
@@ -1992,7 +1992,7 @@ pub fn build_session_options_and_crate_config(
19921992 } ;
19931993 if cg. target_feature == "help" {
19941994 prints. push ( PrintRequest :: TargetFeatures ) ;
1995- cg. target_feature = "" . to_string ( ) ;
1995+ cg. target_feature = String :: new ( ) ;
19961996 }
19971997 if cg. relocation_model . as_ref ( ) . map_or ( false , |s| s == "help" ) {
19981998 prints. push ( PrintRequest :: RelocationModels ) ;
0 commit comments