From a93635ea44c1dda5bf462f471c91b51df53ba6d1 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 4 Aug 2023 12:43:13 +0900 Subject: [PATCH 1/2] Fix build error with -Z minimal-versions ``` error[E0635]: unknown feature `proc_macro_span_shrink` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.52/src/lib.rs:92:30 | 92 | feature(proc_macro_span, proc_macro_span_shrink) | ^^^^^^^^^^^^^^^^^^^^^^ ``` --- async-stream-impl/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-stream-impl/Cargo.toml b/async-stream-impl/Cargo.toml index 172d46f..7e37c95 100644 --- a/async-stream-impl/Cargo.toml +++ b/async-stream-impl/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/tokio-rs/async-stream" proc-macro = true [dependencies] -proc-macro2 = "1" +proc-macro2 = "1.0.60" syn = { version = "2.0.2", features = ["full", "visit-mut"] } quote = "1" From 1fc963d899f19244654071bf978c3f29cca09886 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 4 Aug 2023 12:44:10 +0900 Subject: [PATCH 2/2] Update ui test output for latest syn --- async-stream/tests/ui/yield_bad_expr_in_macro.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-stream/tests/ui/yield_bad_expr_in_macro.stderr b/async-stream/tests/ui/yield_bad_expr_in_macro.stderr index e70e200..1377054 100644 --- a/async-stream/tests/ui/yield_bad_expr_in_macro.stderr +++ b/async-stream/tests/ui/yield_bad_expr_in_macro.stderr @@ -1,4 +1,4 @@ -error: expected expression +error: expected an expression --> tests/ui/yield_bad_expr_in_macro.rs:8:33 | 8 | _ = work() => yield fn f() {},