diff options
author | Matthew Maurer <mmaurer@google.com> | 2023-05-26 20:22:59 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-05-26 20:22:59 +0000 |
commit | 4a06070bb91b0d3b6d44deb37d2bad80c99ab99e (patch) | |
tree | 05384623c79e6ff11a587b3c779d0ba2fc18ba0c | |
parent | e8eb2ffaaca6b2cfc2f8632493a15825d5bb23eb (diff) | |
parent | 96009b4e6295256d800ce08f56d117edbacdc996 (diff) | |
download | futures-macro-4a06070bb91b0d3b6d44deb37d2bad80c99ab99e.tar.gz |
Upgrade futures-macro to 0.3.28 am: 96009b4e62
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures-macro/+/2520196
Change-Id: I781d7597ed9de57f6d729daf237c5ef1802ce2b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | Cargo.toml | 6 | ||||
-rw-r--r-- | Cargo.toml.orig | 6 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/executor.rs | 1 | ||||
-rw-r--r-- | src/select.rs | 2 |
7 files changed, 14 insertions, 13 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index f6443fd..b4872d6 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,6 +1,6 @@ { "git": { - "sha1": "5e3693a350f96244151081d2c030208cd15f9572" + "sha1": "1685f8bdabb8e7f007610f3494425aeabf28117d" }, "path_in_vcs": "futures-macro" }
\ No newline at end of file @@ -41,7 +41,7 @@ rust_proc_macro { name: "libfutures_macro", crate_name: "futures_macro", cargo_env_compat: true, - cargo_pkg_version: "0.3.26", + cargo_pkg_version: "0.3.28", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ @@ -11,9 +11,9 @@ [package] edition = "2018" -rust-version = "1.45" +rust-version = "1.56" name = "futures-macro" -version = "0.3.26" +version = "0.3.28" description = """ The futures-rs procedural macro implementations. """ @@ -31,7 +31,7 @@ version = "1.0" version = "1.0" [dependencies.syn] -version = "1.0.56" +version = "2.0.8" features = ["full"] [features] diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 5e2ed17..23a2529 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,8 +1,8 @@ [package] name = "futures-macro" -version = "0.3.26" +version = "0.3.28" edition = "2018" -rust-version = "1.45" +rust-version = "1.56" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/futures-rs" homepage = "https://rust-lang.github.io/futures-rs" @@ -18,4 +18,4 @@ proc-macro = true [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "1.0.56", features = ["full"] } +syn = { version = "2.0.8", features = ["full"] } @@ -11,13 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/futures-macro/futures-macro-0.3.26.crate" + value: "https://static.crates.io/crates/futures-macro/futures-macro-0.3.28.crate" } - version: "0.3.26" + version: "0.3.28" license_type: NOTICE last_upgrade_date { year: 2023 - month: 2 - day: 15 + month: 4 + day: 3 } } diff --git a/src/executor.rs b/src/executor.rs index 40a091f..7f1d0a9 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -44,6 +44,7 @@ pub(crate) fn test(args: TokenStream, item: TokenStream) -> TokenStream { #path::block_on(async #body) }) .unwrap(), + None, )]; let gen = quote! { diff --git a/src/select.rs b/src/select.rs index 0c8e5f1..2789b3e 100644 --- a/src/select.rs +++ b/src/select.rs @@ -51,7 +51,7 @@ impl Parse for Select { CaseKind::Default } else { // `<pat> = <expr>` - let pat = input.parse()?; + let pat = Pat::parse_multi_with_leading_vert(input)?; input.parse::<Token![=]>()?; let expr = input.parse()?; CaseKind::Normal(pat, expr) |