@@ -94,6 +94,8 @@ fn get_lib_name(lib: &str, aux_type: AuxType) -> Option<String> {
94
94
format ! ( "{}.dll" , lib)
95
95
} else if cfg ! ( target_vendor = "apple" ) {
96
96
format ! ( "lib{}.dylib" , lib)
97
+ } else if cfg ! ( target_os = "aix" ) {
98
+ format ! ( "lib{}.a" , lib)
97
99
} else {
98
100
format ! ( "lib{}.so" , lib)
99
101
} ) ,
@@ -278,11 +280,19 @@ impl<'test> TestCx<'test> {
278
280
Ui | MirOpt => false ,
279
281
mode => panic ! ( "unimplemented for mode {:?}" , mode) ,
280
282
} ;
281
- if test_should_run { self . run_if_enabled ( ) } else { WillExecute :: No }
283
+ if test_should_run {
284
+ self . run_if_enabled ( )
285
+ } else {
286
+ WillExecute :: No
287
+ }
282
288
}
283
289
284
290
fn run_if_enabled ( & self ) -> WillExecute {
285
- if self . config . run_enabled ( ) { WillExecute :: Yes } else { WillExecute :: Disabled }
291
+ if self . config . run_enabled ( ) {
292
+ WillExecute :: Yes
293
+ } else {
294
+ WillExecute :: Disabled
295
+ }
286
296
}
287
297
288
298
fn should_run_successfully ( & self , pm : Option < PassMode > ) -> bool {
@@ -2441,7 +2451,11 @@ impl<'test> TestCx<'test> {
2441
2451
/// The revision, ignored for incremental compilation since it wants all revisions in
2442
2452
/// the same directory.
2443
2453
fn safe_revision ( & self ) -> Option < & str > {
2444
- if self . config . mode == Incremental { None } else { self . revision }
2454
+ if self . config . mode == Incremental {
2455
+ None
2456
+ } else {
2457
+ self . revision
2458
+ }
2445
2459
}
2446
2460
2447
2461
/// Gets the absolute path to the directory where all output for the given
@@ -2665,7 +2679,11 @@ impl<'test> TestCx<'test> {
2665
2679
2666
2680
fn charset ( ) -> & ' static str {
2667
2681
// FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
2668
- if cfg ! ( target_os = "freebsd" ) { "ISO-8859-1" } else { "UTF-8" }
2682
+ if cfg ! ( target_os = "freebsd" ) {
2683
+ "ISO-8859-1"
2684
+ } else {
2685
+ "UTF-8"
2686
+ }
2669
2687
}
2670
2688
2671
2689
fn run_rustdoc_test ( & self ) {
@@ -4488,7 +4506,11 @@ impl<'test> TestCx<'test> {
4488
4506
for output_file in files {
4489
4507
println ! ( "Actual {} saved to {}" , kind, output_file. display( ) ) ;
4490
4508
}
4491
- if self . config . bless { 0 } else { 1 }
4509
+ if self . config . bless {
4510
+ 0
4511
+ } else {
4512
+ 1
4513
+ }
4492
4514
}
4493
4515
4494
4516
fn check_and_prune_duplicate_outputs (
0 commit comments