@@ -861,7 +861,7 @@ impl CoordinatorFactory {
861
861
CoordinatorId { start, id }
862
862
}
863
863
864
- pub async fn build < B > ( & self ) -> Coordinator < B >
864
+ pub fn build < B > ( & self ) -> Coordinator < B >
865
865
where
866
866
B : Backend + From < CoordinatorId > ,
867
867
{
@@ -2849,30 +2849,30 @@ mod tests {
2849
2849
static TEST_COORDINATOR_FACTORY : Lazy < CoordinatorFactory > =
2850
2850
Lazy :: new ( || CoordinatorFactory :: new ( * MAX_CONCURRENT_TESTS ) ) ;
2851
2851
2852
- async fn new_coordinator_test ( ) -> Coordinator < TestBackend > {
2853
- TEST_COORDINATOR_FACTORY . build ( ) . await
2852
+ fn new_coordinator_test ( ) -> Coordinator < TestBackend > {
2853
+ TEST_COORDINATOR_FACTORY . build ( )
2854
2854
}
2855
2855
2856
- async fn new_coordinator_docker ( ) -> Coordinator < DockerBackend > {
2857
- TEST_COORDINATOR_FACTORY . build ( ) . await
2856
+ fn new_coordinator_docker ( ) -> Coordinator < DockerBackend > {
2857
+ TEST_COORDINATOR_FACTORY . build ( )
2858
2858
}
2859
2859
2860
- async fn new_coordinator ( ) -> Coordinator < impl Backend > {
2860
+ fn new_coordinator ( ) -> Coordinator < impl Backend > {
2861
2861
#[ cfg( not( force_docker) ) ]
2862
2862
{
2863
- new_coordinator_test ( ) . await
2863
+ new_coordinator_test ( )
2864
2864
}
2865
2865
2866
2866
#[ cfg( force_docker) ]
2867
2867
{
2868
- new_coordinator_docker ( ) . await
2868
+ new_coordinator_docker ( )
2869
2869
}
2870
2870
}
2871
2871
2872
2872
#[ tokio:: test]
2873
2873
#[ snafu:: report]
2874
2874
async fn versions ( ) -> Result < ( ) > {
2875
- let coordinator = new_coordinator ( ) . await ;
2875
+ let coordinator = new_coordinator ( ) ;
2876
2876
2877
2877
let versions = coordinator. versions ( ) . with_timeout ( ) . await . unwrap ( ) ;
2878
2878
@@ -2903,7 +2903,7 @@ mod tests {
2903
2903
#[ tokio:: test]
2904
2904
#[ snafu:: report]
2905
2905
async fn execute_response ( ) -> Result < ( ) > {
2906
- let coordinator = new_coordinator ( ) . await ;
2906
+ let coordinator = new_coordinator ( ) ;
2907
2907
2908
2908
let response = coordinator
2909
2909
. execute ( new_execute_request ( ) )
@@ -2931,7 +2931,7 @@ mod tests {
2931
2931
] ;
2932
2932
2933
2933
let tests = params. into_iter ( ) . map ( |( mode, expected) | async move {
2934
- let coordinator = new_coordinator ( ) . await ;
2934
+ let coordinator = new_coordinator ( ) ;
2935
2935
2936
2936
let request = ExecuteRequest {
2937
2937
mode,
@@ -2971,7 +2971,7 @@ mod tests {
2971
2971
let tests = params. into_iter ( ) . flat_map ( |( code, works_in) | {
2972
2972
Edition :: ALL . into_iter ( ) . zip ( works_in) . map (
2973
2973
move |( edition, expected_to_work) | async move {
2974
- let coordinator = new_coordinator ( ) . await ;
2974
+ let coordinator = new_coordinator ( ) ;
2975
2975
2976
2976
let request = ExecuteRequest {
2977
2977
code : code. into ( ) ,
@@ -3012,7 +3012,7 @@ mod tests {
3012
3012
] ;
3013
3013
3014
3014
let tests = params. into_iter ( ) . map ( |( crate_type, expected) | async move {
3015
- let coordinator = new_coordinator ( ) . await ;
3015
+ let coordinator = new_coordinator ( ) ;
3016
3016
3017
3017
let request = ExecuteRequest {
3018
3018
crate_type,
@@ -3045,7 +3045,7 @@ mod tests {
3045
3045
let params = [ ( false , "Running `" ) , ( true , "Running unittests" ) ] ;
3046
3046
3047
3047
let tests = params. into_iter ( ) . map ( |( tests, expected) | async move {
3048
- let coordinator = new_coordinator ( ) . await ;
3048
+ let coordinator = new_coordinator ( ) ;
3049
3049
3050
3050
let request = ExecuteRequest {
3051
3051
code : code. into ( ) ,
@@ -3078,7 +3078,7 @@ mod tests {
3078
3078
] ;
3079
3079
3080
3080
let tests = params. into_iter ( ) . map ( |( backtrace, expected) | async move {
3081
- let coordinator = new_coordinator ( ) . await ;
3081
+ let coordinator = new_coordinator ( ) ;
3082
3082
3083
3083
let request = ExecuteRequest {
3084
3084
code : code. into ( ) ,
@@ -3107,7 +3107,7 @@ mod tests {
3107
3107
#[ tokio:: test]
3108
3108
#[ snafu:: report]
3109
3109
async fn execute_stdin ( ) -> Result < ( ) > {
3110
- let coordinator = new_coordinator ( ) . await ;
3110
+ let coordinator = new_coordinator ( ) ;
3111
3111
3112
3112
let request = ExecuteRequest {
3113
3113
code : r#"
@@ -3155,7 +3155,7 @@ mod tests {
3155
3155
#[ tokio:: test]
3156
3156
#[ snafu:: report]
3157
3157
async fn execute_stdin_close ( ) -> Result < ( ) > {
3158
- let coordinator = new_coordinator ( ) . await ;
3158
+ let coordinator = new_coordinator ( ) ;
3159
3159
3160
3160
let request = ExecuteRequest {
3161
3161
code : r#"
@@ -3213,7 +3213,7 @@ mod tests {
3213
3213
#[ tokio:: test]
3214
3214
#[ snafu:: report]
3215
3215
async fn execute_kill ( ) -> Result < ( ) > {
3216
- let coordinator = new_coordinator ( ) . await ;
3216
+ let coordinator = new_coordinator ( ) ;
3217
3217
3218
3218
let request = ExecuteRequest {
3219
3219
code : r#"
@@ -3272,7 +3272,7 @@ mod tests {
3272
3272
#[ tokio:: test]
3273
3273
#[ snafu:: report]
3274
3274
async fn execute_status ( ) -> Result < ( ) > {
3275
- let coordinator = new_coordinator ( ) . await ;
3275
+ let coordinator = new_coordinator ( ) ;
3276
3276
3277
3277
let request = ExecuteRequest {
3278
3278
code : r#"
@@ -3345,7 +3345,7 @@ mod tests {
3345
3345
#[ tokio:: test]
3346
3346
#[ snafu:: report]
3347
3347
async fn compile_response ( ) -> Result < ( ) > {
3348
- let coordinator = new_coordinator ( ) . await ;
3348
+ let coordinator = new_coordinator ( ) ;
3349
3349
3350
3350
let req = CompileRequest {
3351
3351
code : HELLO_WORLD_CODE . into ( ) ,
@@ -3366,7 +3366,7 @@ mod tests {
3366
3366
#[ tokio:: test]
3367
3367
#[ snafu:: report]
3368
3368
async fn compile_streaming ( ) -> Result < ( ) > {
3369
- let coordinator = new_coordinator ( ) . await ;
3369
+ let coordinator = new_coordinator ( ) ;
3370
3370
3371
3371
let req = CompileRequest {
3372
3372
code : HELLO_WORLD_CODE . into ( ) ,
@@ -3401,7 +3401,7 @@ mod tests {
3401
3401
#[ snafu:: report]
3402
3402
async fn compile_edition ( ) -> Result < ( ) > {
3403
3403
for edition in Edition :: ALL {
3404
- let coordinator = new_coordinator ( ) . await ;
3404
+ let coordinator = new_coordinator ( ) ;
3405
3405
3406
3406
let req = CompileRequest {
3407
3407
edition,
@@ -3447,7 +3447,7 @@ mod tests {
3447
3447
#[ tokio:: test]
3448
3448
#[ snafu:: report]
3449
3449
async fn compile_assembly ( ) -> Result < ( ) > {
3450
- let coordinator = new_coordinator ( ) . await ;
3450
+ let coordinator = new_coordinator ( ) ;
3451
3451
3452
3452
let req = CompileRequest {
3453
3453
code : ADD_CODE . into ( ) ,
@@ -3480,7 +3480,7 @@ mod tests {
3480
3480
] ;
3481
3481
3482
3482
for ( flavor, expected) in cases {
3483
- let coordinator = new_coordinator ( ) . await ;
3483
+ let coordinator = new_coordinator ( ) ;
3484
3484
3485
3485
let req = CompileRequest {
3486
3486
target : CompileTarget :: Assembly (
@@ -3514,7 +3514,7 @@ mod tests {
3514
3514
] ;
3515
3515
3516
3516
for ( mangle, expected) in cases {
3517
- let coordinator = new_coordinator ( ) . await ;
3517
+ let coordinator = new_coordinator ( ) ;
3518
3518
3519
3519
let req = CompileRequest {
3520
3520
target : CompileTarget :: Assembly (
@@ -3546,7 +3546,7 @@ mod tests {
3546
3546
] ;
3547
3547
3548
3548
for ( process, expected) in cases {
3549
- let coordinator = new_coordinator ( ) . await ;
3549
+ let coordinator = new_coordinator ( ) ;
3550
3550
3551
3551
let req = CompileRequest {
3552
3552
target : CompileTarget :: Assembly (
@@ -3589,7 +3589,7 @@ mod tests {
3589
3589
#[ tokio:: test]
3590
3590
#[ snafu:: report]
3591
3591
async fn compile_hir ( ) -> Result < ( ) > {
3592
- let coordinator = new_coordinator ( ) . await ;
3592
+ let coordinator = new_coordinator ( ) ;
3593
3593
3594
3594
let req = CompileRequest {
3595
3595
code : SUBTRACT_CODE . into ( ) ,
@@ -3609,7 +3609,7 @@ mod tests {
3609
3609
#[ tokio:: test]
3610
3610
#[ snafu:: report]
3611
3611
async fn compile_llvm_ir ( ) -> Result < ( ) > {
3612
- let coordinator = new_coordinator ( ) . await ;
3612
+ let coordinator = new_coordinator ( ) ;
3613
3613
3614
3614
let req = CompileRequest {
3615
3615
target : CompileTarget :: LlvmIr ,
@@ -3636,7 +3636,7 @@ mod tests {
3636
3636
#[ snafu:: report]
3637
3637
async fn compile_wasm ( ) -> Result < ( ) > {
3638
3638
// cargo-wasm only exists inside the container
3639
- let coordinator = new_coordinator_docker ( ) . await ;
3639
+ let coordinator = new_coordinator_docker ( ) ;
3640
3640
3641
3641
let req = CompileRequest {
3642
3642
target : CompileTarget :: Wasm ,
@@ -3680,7 +3680,7 @@ mod tests {
3680
3680
#[ tokio:: test]
3681
3681
#[ snafu:: report]
3682
3682
async fn format ( ) -> Result < ( ) > {
3683
- let coordinator = new_coordinator ( ) . await ;
3683
+ let coordinator = new_coordinator ( ) ;
3684
3684
3685
3685
let req = FormatRequest {
3686
3686
code : ARBITRARY_FORMAT_INPUT . into ( ) ,
@@ -3702,7 +3702,7 @@ mod tests {
3702
3702
#[ snafu:: report]
3703
3703
async fn format_channel ( ) -> Result < ( ) > {
3704
3704
for channel in Channel :: ALL {
3705
- let coordinator = new_coordinator ( ) . await ;
3705
+ let coordinator = new_coordinator ( ) ;
3706
3706
3707
3707
let req = FormatRequest {
3708
3708
channel,
@@ -3731,7 +3731,7 @@ mod tests {
3731
3731
] ;
3732
3732
3733
3733
for ( code, works_in) in cases {
3734
- let coordinator = new_coordinator ( ) . await ;
3734
+ let coordinator = new_coordinator ( ) ;
3735
3735
3736
3736
for ( edition, works) in Edition :: ALL . into_iter ( ) . zip ( works_in) {
3737
3737
let req = FormatRequest {
@@ -3760,7 +3760,7 @@ mod tests {
3760
3760
#[ tokio:: test]
3761
3761
#[ snafu:: report]
3762
3762
async fn clippy ( ) -> Result < ( ) > {
3763
- let coordinator = new_coordinator ( ) . await ;
3763
+ let coordinator = new_coordinator ( ) ;
3764
3764
3765
3765
let req = ClippyRequest {
3766
3766
code : r#"
@@ -3796,7 +3796,7 @@ mod tests {
3796
3796
let tests = cases. into_iter ( ) . flat_map ( |( code, expected_to_be_clean) | {
3797
3797
Edition :: ALL . into_iter ( ) . zip ( expected_to_be_clean) . map (
3798
3798
move |( edition, expected_to_be_clean) | async move {
3799
- let coordinator = new_coordinator ( ) . await ;
3799
+ let coordinator = new_coordinator ( ) ;
3800
3800
3801
3801
let req = ClippyRequest {
3802
3802
edition,
@@ -3835,7 +3835,7 @@ mod tests {
3835
3835
#[ snafu:: report]
3836
3836
async fn miri ( ) -> Result < ( ) > {
3837
3837
// cargo-miri-playground only exists inside the container
3838
- let coordinator = new_coordinator_docker ( ) . await ;
3838
+ let coordinator = new_coordinator_docker ( ) ;
3839
3839
3840
3840
let req = MiriRequest {
3841
3841
code : r#"
@@ -3870,7 +3870,7 @@ mod tests {
3870
3870
#[ tokio:: test]
3871
3871
#[ snafu:: report]
3872
3872
async fn macro_expansion ( ) -> Result < ( ) > {
3873
- let coordinator = new_coordinator ( ) . await ;
3873
+ let coordinator = new_coordinator ( ) ;
3874
3874
3875
3875
let req = MacroExpansionRequest {
3876
3876
code : r#"
@@ -3904,7 +3904,7 @@ mod tests {
3904
3904
#[ tokio:: test]
3905
3905
#[ snafu:: report]
3906
3906
async fn compile_clears_old_main_rs ( ) -> Result < ( ) > {
3907
- let coordinator = new_coordinator ( ) . await ;
3907
+ let coordinator = new_coordinator ( ) ;
3908
3908
3909
3909
// Create a main.rs file
3910
3910
let req = ExecuteRequest {
@@ -3955,7 +3955,7 @@ mod tests {
3955
3955
#[ tokio:: test]
3956
3956
#[ snafu:: report]
3957
3957
async fn still_usable_after_idle ( ) -> Result < ( ) > {
3958
- let mut coordinator = new_coordinator ( ) . await ;
3958
+ let mut coordinator = new_coordinator ( ) ;
3959
3959
3960
3960
let req = ExecuteRequest {
3961
3961
channel : Channel :: Stable ,
@@ -3983,7 +3983,7 @@ mod tests {
3983
3983
#[ tokio:: test]
3984
3984
#[ snafu:: report]
3985
3985
async fn exit_due_to_signal_is_reported ( ) -> Result < ( ) > {
3986
- let coordinator = new_coordinator ( ) . await ;
3986
+ let coordinator = new_coordinator ( ) ;
3987
3987
3988
3988
let req = ExecuteRequest {
3989
3989
channel : Channel :: Stable ,
@@ -4021,7 +4021,7 @@ mod tests {
4021
4021
#[ snafu:: report]
4022
4022
async fn network_connections_are_disabled ( ) -> Result < ( ) > {
4023
4023
// The limits are only applied to the container
4024
- let coordinator = new_coordinator_docker ( ) . await ;
4024
+ let coordinator = new_coordinator_docker ( ) ;
4025
4025
4026
4026
let req = ExecuteRequest {
4027
4027
code : r#"
@@ -4049,7 +4049,7 @@ mod tests {
4049
4049
#[ snafu:: report]
4050
4050
async fn memory_usage_is_limited ( ) -> Result < ( ) > {
4051
4051
// The limits are only applied to the container
4052
- let coordinator = new_coordinator_docker ( ) . await ;
4052
+ let coordinator = new_coordinator_docker ( ) ;
4053
4053
4054
4054
let req = ExecuteRequest {
4055
4055
code : r#"
@@ -4078,7 +4078,7 @@ mod tests {
4078
4078
#[ snafu:: report]
4079
4079
async fn number_of_pids_is_limited ( ) -> Result < ( ) > {
4080
4080
// The limits are only applied to the container
4081
- let coordinator = new_coordinator_docker ( ) . await ;
4081
+ let coordinator = new_coordinator_docker ( ) ;
4082
4082
4083
4083
let req = ExecuteRequest {
4084
4084
code : r##"
@@ -4109,7 +4109,7 @@ mod tests {
4109
4109
#[ snafu:: report]
4110
4110
async fn amount_of_output_is_limited ( ) -> Result < ( ) > {
4111
4111
// The limits are only applied to the container
4112
- let coordinator = new_coordinator_docker ( ) . await ;
4112
+ let coordinator = new_coordinator_docker ( ) ;
4113
4113
4114
4114
let req = ExecuteRequest {
4115
4115
code : r##"
0 commit comments