Skip to content

Commit 206b12b

Browse files
maurertaiki-e
authored andcommitted
Update to syn 2 (#2730)
1 parent 98e80d4 commit 206b12b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

futures-macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ proc-macro = true
1818
[dependencies]
1919
proc-macro2 = "1.0"
2020
quote = "1.0"
21-
syn = { version = "1.0.56", features = ["full"] }
21+
syn = { version = "2.0.8", features = ["full"] }

futures-macro/src/executor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub(crate) fn test(args: TokenStream, item: TokenStream) -> TokenStream {
4444
#path::block_on(async #body)
4545
})
4646
.unwrap(),
47+
None,
4748
)];
4849

4950
let gen = quote! {

futures-macro/src/select.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Parse for Select {
5151
CaseKind::Default
5252
} else {
5353
// `<pat> = <expr>`
54-
let pat = input.parse()?;
54+
let pat = Pat::parse_multi_with_leading_vert(input)?;
5555
input.parse::<Token![=]>()?;
5656
let expr = input.parse()?;
5757
CaseKind::Normal(pat, expr)

0 commit comments

Comments
 (0)