@@ -313,7 +313,7 @@ mod tests {
313
313
#[ test]
314
314
fn codegen_type ( ) {
315
315
let expected = RustcCodegenFlags {
316
- code_model : Some ( "tiny" . into ( ) ) ,
316
+ code_model : Some ( "tiny" ) ,
317
317
..RustcCodegenFlags :: default ( )
318
318
} ;
319
319
check ( "-Ccode-model=tiny" , & expected) ;
@@ -327,7 +327,7 @@ mod tests {
327
327
check (
328
328
"-ccode-model=tiny\u{1f} -Ccode-model=small" ,
329
329
& RustcCodegenFlags {
330
- code_model : Some ( "small" . into ( ) ) ,
330
+ code_model : Some ( "small" ) ,
331
331
..RustcCodegenFlags :: default ( )
332
332
} ,
333
333
) ;
@@ -342,7 +342,7 @@ mod tests {
342
342
#[ test]
343
343
fn three_valid_prefixes ( ) {
344
344
let expected = RustcCodegenFlags {
345
- lto : Some ( "true" . into ( ) ) ,
345
+ lto : Some ( "true" ) ,
346
346
..RustcCodegenFlags :: default ( )
347
347
} ;
348
348
check ( "-L\u{1f} -L\u{1f} -Clto" , & expected) ;
@@ -460,20 +460,20 @@ mod tests {
460
460
check (
461
461
& flags. join ( "\u{1f} " ) ,
462
462
& RustcCodegenFlags {
463
- code_model : Some ( "tiny" . into ( ) ) ,
464
- control_flow_guard : Some ( "yes" . into ( ) ) ,
463
+ code_model : Some ( "tiny" ) ,
464
+ control_flow_guard : Some ( "yes" ) ,
465
465
embed_bitcode : Some ( false ) ,
466
466
force_frame_pointers : Some ( true ) ,
467
467
link_dead_code : Some ( true ) ,
468
- lto : Some ( "false" . into ( ) ) ,
468
+ lto : Some ( "false" ) ,
469
469
no_redzone : Some ( true ) ,
470
470
no_vectorize_loops : true ,
471
471
no_vectorize_slp : true ,
472
- profile_generate : Some ( "fooprofile" . into ( ) ) ,
473
- profile_use : Some ( "fooprofile" . into ( ) ) ,
474
- relocation_model : Some ( "pic" . into ( ) ) ,
472
+ profile_generate : Some ( "fooprofile" ) ,
473
+ profile_use : Some ( "fooprofile" ) ,
474
+ relocation_model : Some ( "pic" ) ,
475
475
soft_float : Some ( true ) ,
476
- branch_protection : Some ( "bti,pac-ret,leaf" . into ( ) ) ,
476
+ branch_protection : Some ( "bti,pac-ret,leaf" ) ,
477
477
} ,
478
478
) ;
479
479
}
0 commit comments