Skip to content

fix(deps): update rust crate syn to v2 #2555

fix(deps): update rust crate syn to v2

fix(deps): update rust crate syn to v2 #2555

Triggered via push July 30, 2023 16:57
Status Failure
Total duration 1m 57s
Artifacts

linux.yml

on: push
Matrix: build_and_test
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 7 warnings
nightly - x86_64-unknown-linux-gnu: yarte_parser/src/expr_list.rs#L14
this method takes 2 arguments but 1 argument was supplied
nightly - x86_64-unknown-linux-gnu: yarte_parser/src/stmt_local.rs#L24
the trait bound `Pat: Parse` is not satisfied
nightly - x86_64-unknown-linux-gnu: yarte_parser/src/stmt_local.rs#L36
the trait bound `Pat: Parse` is not satisfied
nightly - x86_64-unknown-linux-gnu
could not compile `yarte_parser` (lib) due to 5 previous errors
nightly - x86_64-unknown-linux-gnu
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
mismatched types: yarte_parser/src/stmt_local.rs#L103
error[E0308]: mismatched types --> yarte_parser/src/stmt_local.rs:103:19 | 103 | init: local.init, | ^^^^^^^^^^ expected `Option<(Eq, Box<Expr>)>`, found `Option<LocalInit>` | = note: expected enum `std::option::Option<(syn::token::Eq, std::boxed::Box<syn::Expr>)>` found enum `std::option::Option<syn::LocalInit>`
mismatched types: yarte_parser/src/stmt_local.rs#L92
error[E0308]: mismatched types --> yarte_parser/src/stmt_local.rs:92:19 | 92 | init: val.init, | ^^^^^^^^ expected `Option<LocalInit>`, found `Option<(Eq, Box<Expr>)>` | = note: expected enum `std::option::Option<syn::LocalInit>` found enum `std::option::Option<(syn::token::Eq, std::boxed::Box<syn::Expr>)>`
the trait bound `syn::Pat: syn::parse::Parse` is not satisfied: yarte_parser/src/stmt_local.rs#L36
error[E0277]: the trait bound `syn::Pat: syn::parse::Parse` is not satisfied --> yarte_parser/src/stmt_local.rs:36:46 | 36 | let pat: Pat = input.parse()?; | ^^^^^ the trait `syn::parse::Parse` is not implemented for `syn::Pat` | = help: the following other types implement trait `syn::parse::Parse`: expr_list::ExprList std::boxed::Box<T> stmt_local::StmtLocal Local Expr proc_macro2::TokenStream proc_macro2::TokenTree proc_macro2::Group and 247 others note: required by a bound in `syn::parse::ParseBuffer::<'a>::parse` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.27/src/parse.rs:460:21 | 460 | pub fn parse<T: Parse>(&self) -> Result<T> { | ^^^^^ required by this bound in `ParseBuffer::<'a>::parse`
the trait bound `syn::Pat: syn::parse::Parse` is not satisfied: yarte_parser/src/stmt_local.rs#L24
error[E0277]: the trait bound `syn::Pat: syn::parse::Parse` is not satisfied --> yarte_parser/src/stmt_local.rs:24:42 | 24 | let mut pat: Pat = input.parse()?; | ^^^^^ the trait `syn::parse::Parse` is not implemented for `syn::Pat` | = help: the following other types implement trait `syn::parse::Parse`: expr_list::ExprList std::boxed::Box<T> stmt_local::StmtLocal Local Expr proc_macro2::TokenStream proc_macro2::TokenTree proc_macro2::Group and 247 others note: required by a bound in `syn::parse::ParseBuffer::<'a>::parse` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.27/src/parse.rs:460:21 | 460 | pub fn parse<T: Parse>(&self) -> Result<T> { | ^^^^^ required by this bound in `ParseBuffer::<'a>::parse`
this method takes 2 arguments but 1 argument was supplied: yarte_parser/src/expr_list.rs#L14
error[E0061]: this method takes 2 arguments but 1 argument was supplied --> yarte_parser/src/expr_list.rs:14:25 | 14 | list: input.parse_terminated(Expr::parse)?, | ^^^^^^^^^^^^^^^^------------- an argument is missing | note: method defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.27/src/parse.rs:739:12 | 739 | pub fn parse_terminated<T, P>( | ^^^^^^^^^^^^^^^^ help: provide the argument | 14 | list: input.parse_terminated(Expr::parse, /* separator */)?, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mismatched types: yarte_parser/src/stmt_local.rs#L103
error[E0308]: mismatched types --> yarte_parser/src/stmt_local.rs:103:19 | 103 | init: local.init, | ^^^^^^^^^^ expected `Option<(Eq, Box<Expr>)>`, found `Option<LocalInit>` | = note: expected enum `std::option::Option<(syn::token::Eq, std::boxed::Box<syn::Expr>)>` found enum `std::option::Option<syn::LocalInit>`
mismatched types: yarte_parser/src/stmt_local.rs#L92
error[E0308]: mismatched types --> yarte_parser/src/stmt_local.rs:92:19 | 92 | init: val.init, | ^^^^^^^^ expected `Option<LocalInit>`, found `Option<(Eq, Box<Expr>)>` | = note: expected enum `std::option::Option<syn::LocalInit>` found enum `std::option::Option<(syn::token::Eq, std::boxed::Box<syn::Expr>)>`
the trait bound `syn::Pat: syn::parse::Parse` is not satisfied: yarte_parser/src/stmt_local.rs#L36
error[E0277]: the trait bound `syn::Pat: syn::parse::Parse` is not satisfied --> yarte_parser/src/stmt_local.rs:36:46 | 36 | let pat: Pat = input.parse()?; | ^^^^^ the trait `syn::parse::Parse` is not implemented for `syn::Pat` | = help: the following other types implement trait `syn::parse::Parse`: expr_list::ExprList std::boxed::Box<T> stmt_local::StmtLocal Local Expr proc_macro2::TokenStream proc_macro2::TokenTree proc_macro2::Group and 247 others note: required by a bound in `syn::parse::ParseBuffer::<'a>::parse` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.27/src/parse.rs:460:21 | 460 | pub fn parse<T: Parse>(&self) -> Result<T> { | ^^^^^ required by this bound in `ParseBuffer::<'a>::parse`
the trait bound `syn::Pat: syn::parse::Parse` is not satisfied: yarte_parser/src/stmt_local.rs#L24
error[E0277]: the trait bound `syn::Pat: syn::parse::Parse` is not satisfied --> yarte_parser/src/stmt_local.rs:24:42 | 24 | let mut pat: Pat = input.parse()?; | ^^^^^ the trait `syn::parse::Parse` is not implemented for `syn::Pat` | = help: the following other types implement trait `syn::parse::Parse`: expr_list::ExprList std::boxed::Box<T> stmt_local::StmtLocal Local Expr proc_macro2::TokenStream proc_macro2::TokenTree proc_macro2::Group and 247 others note: required by a bound in `syn::parse::ParseBuffer::<'a>::parse` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.27/src/parse.rs:460:21 | 460 | pub fn parse<T: Parse>(&self) -> Result<T> { | ^^^^^ required by this bound in `ParseBuffer::<'a>::parse`
this method takes 2 arguments but 1 argument was supplied: yarte_parser/src/expr_list.rs#L14
error[E0061]: this method takes 2 arguments but 1 argument was supplied --> yarte_parser/src/expr_list.rs:14:25 | 14 | list: input.parse_terminated(Expr::parse)?, | ^^^^^^^^^^^^^^^^------------- an argument is missing | note: method defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.27/src/parse.rs:739:12 | 739 | pub fn parse_terminated<T, P>( | ^^^^^^^^^^^^^^^^ help: provide the argument | 14 | list: input.parse_terminated(Expr::parse, /* separator */)?, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nightly - x86_64-unknown-linux-gnu
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
nightly - x86_64-unknown-linux-gnu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
nightly - x86_64-unknown-linux-gnu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
nightly - x86_64-unknown-linux-gnu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
nightly - x86_64-unknown-linux-gnu
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference: yarte_helpers/src/helpers/ser_json/mod.rs#L18
warning: methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference --> yarte_helpers/src/helpers/ser_json/mod.rs:18:32 | 18 | fn to_bytes_mut<B: Buffer>(&self, buf: &mut B); | ^^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention = note: `#[warn(clippy::wrong_self_convention)]` on by default
methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference: yarte_helpers/src/helpers/ser_json/mod.rs#L18
warning: methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference --> yarte_helpers/src/helpers/ser_json/mod.rs:18:32 | 18 | fn to_bytes_mut<B: Buffer>(&self, buf: &mut B); | ^^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention = note: `#[warn(clippy::wrong_self_convention)]` on by default