@@ -3074,11 +3074,7 @@ mod tests {
30743074 r#"fn x() { u16::try_from(1u8); }"# ,
30753075 [ false , false , true , true ] ,
30763076 ) ,
3077- (
3078- r#"#![feature(gen_blocks)]
3079- fn x() { gen { yield 1u8 }; }"# ,
3080- [ false , false , false , true ] ,
3081- ) ,
3077+ ( r#"fn x() { let gen = true; }"# , [ true , true , true , false ] ) ,
30823078 ] ;
30833079
30843080 let tests = params. into_iter ( ) . flat_map ( |( code, works_in) | {
@@ -3090,7 +3086,6 @@ mod tests {
30903086 code : code. into ( ) ,
30913087 edition,
30923088 crate_type : CrateType :: Library ( LibraryType :: Lib ) ,
3093- channel : Channel :: Nightly , // To allow 2024 while it is unstable
30943089 ..ARBITRARY_EXECUTE_REQUEST
30953090 } ;
30963091 let response = coordinator. execute ( request) . await . unwrap ( ) ;
@@ -3524,7 +3519,6 @@ mod tests {
35243519 let req = CompileRequest {
35253520 edition,
35263521 code : SUBTRACT_CODE . into ( ) ,
3527- channel : Channel :: Nightly , // To allow 2024 while it is unstable
35283522 ..ARBITRARY_HIR_REQUEST
35293523 } ;
35303524
@@ -3855,7 +3849,6 @@ mod tests {
38553849 let req = FormatRequest {
38563850 edition,
38573851 code : code. into ( ) ,
3858- channel : Channel :: Nightly , // To allow 2024 while it is unstable
38593852 ..ARBITRARY_FORMAT_REQUEST
38603853 } ;
38613854
@@ -4265,14 +4258,10 @@ mod tests {
42654258 } ) ;
42664259
42674260 trait TimeoutExt : Future + Sized {
4268- #[ allow( clippy:: type_complexity) ]
4269- fn with_timeout (
4270- self ,
4271- ) -> futures:: future:: Map <
4272- tokio:: time:: Timeout < Self > ,
4273- fn ( Result < Self :: Output , tokio:: time:: error:: Elapsed > ) -> Self :: Output ,
4274- > {
4275- tokio:: time:: timeout ( * TIMEOUT , self ) . map ( |v| v. expect ( "The operation timed out" ) )
4261+ async fn with_timeout ( self ) -> Self :: Output {
4262+ tokio:: time:: timeout ( * TIMEOUT , self )
4263+ . await
4264+ . expect ( "The operation timed out" )
42764265 }
42774266 }
42784267
0 commit comments