chore(deps): update rust crate syn to v2 #7157
Annotations
6 errors and 3 warnings
attempted to take value of method `path` on type `&syn::Attribute`:
core/tauri-macros/src/command_module.rs#L129
error[E0615]: attempted to take value of method `path` on type `&syn::Attribute`
--> core/tauri-macros/src/command_module.rs:129:19
|
129 | if attr.path.is_ident("cmd") {
| ^^^^ method, not a field
|
help: use parentheses to call the method
|
129 | if attr.path().is_ident("cmd") {
| ++
|
attempted to take value of method `path` on type `syn::Attribute`:
core/tauri-macros/src/command_module.rs#L101
error[E0615]: attempted to take value of method `path` on type `syn::Attribute`
--> core/tauri-macros/src/command_module.rs:101:13
|
101 | if attr.path.is_ident("cmd") {
| ^^^^ method, not a field
|
help: use parentheses to call the method
|
101 | if attr.path().is_ident("cmd") {
| ++
|
attempted to take value of method `path` on type `&syn::Attribute`:
core/tauri-macros/src/command_module.rs#L30
error[E0615]: attempted to take value of method `path` on type `&syn::Attribute`
--> core/tauri-macros/src/command_module.rs:30:19
|
30 | if attr.path.is_ident("cmd") {
| ^^^^ method, not a field
|
help: use parentheses to call the method
|
30 | if attr.path().is_ident("cmd") {
| ++
|
no field `lit` on type `syn::MetaNameValue`:
core/tauri-macros/src/command/wrapper.rs#L34
error[E0609]: no field `lit` on type `syn::MetaNameValue`
--> core/tauri-macros/src/command/wrapper.rs:34:36
|
34 | if let Lit::Str(s) = v.lit {
| ^^^ unknown field
|
= note: available fields are: `path`, `eq_token`, `value`
|
this method takes 2 arguments but 1 argument was supplied:
core/tauri-macros/src/command/handler.rs#L20
error[E0061]: this method takes 2 arguments but 1 argument was supplied
--> core/tauri-macros/src/command/handler.rs:20:23
|
20 | let paths = input.parse_terminated::<Path, Token![,]>(Path::parse)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------- argument #2 of type `syn::token::Comma` is missing
|
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.60/src/parse.rs:729:12
|
729 | pub fn parse_terminated<T, P>(
| ^^^^^^^^^^^^^^^^
help: provide the argument
|
20 | let paths = input.parse_terminated::<Path, Token![,]>(Path::parse, /* syn::token::Comma */)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
expected a `FnOnce(syn::lookahead::TokenMarker)` closure, found `syn::token::Comma`:
core/tauri-macros/src/command/handler.rs#L20
error[E0277]: expected a `FnOnce(syn::lookahead::TokenMarker)` closure, found `syn::token::Comma`
--> core/tauri-macros/src/command/handler.rs:20:23
|
20 | let paths = input.parse_terminated::<Path, Token![,]>(Path::parse)?;
| ^^^^^^^^^^^^^^^^ expected an `FnOnce(syn::lookahead::TokenMarker)` closure, found `syn::token::Comma`
|
= help: the trait `FnOnce(syn::lookahead::TokenMarker)` is not implemented for `syn::token::Comma`, which is required by `syn::token::Comma: syn::parse::Peek`
= help: the trait `syn::parse::Peek` is implemented for `syn::ext::private::PeekFn`
= note: required for `syn::token::Comma` to implement `syn::parse::Peek`
|
audit-rust
14 warnings found!
|
audit-rust
Unknown warning kind unsound found, please, file a bug
|
audit-rust
Unknown warning kind unsound found, please, file a bug
|