Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compiling near-sdk-core v2.0.0 (https://github.com/near/near-sdk-rs.git?tag=2.4.0#477056f1)
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/helpers.rs:2:10
|
2 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/enum_schema.rs:3:10
|
3 | use syn::export::{Span, ToTokens, TokenStream2};
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/struct_schema.rs:3:10
|
3 | use syn::export::{ToTokens, TokenStream2};
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.7.1/src/enum_de.rs:4:10
|
4 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.7.1/src/enum_ser.rs:4:10
|
4 | use syn::export::{Span, TokenStream2};
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.7.1/src/struct_de.rs:3:10
|
3 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.7.1/src/struct_ser.rs:4:10
|
4 | use syn::export::{Span, TokenStream2};
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.7.1/src/union_de.rs:1:10
|
1 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-derive-internal-0.7.1/src/union_ser.rs:1:10
|
1 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/attr_sig_info.rs:1:10
|
1 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/impl_item_method_info.rs:3:10
|
3 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/item_trait_info.rs:3:10
|
3 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/trait_item_method_info.rs:3:10
|
3 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/item_impl_info.rs:2:10
|
2 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/info_extractor/arg_info.rs:4:10
|
4 | use syn::export::Span;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/info_extractor/attr_sig_info.rs:5:10
|
5 | use syn::export::Span;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/info_extractor/trait_item_method_info.rs:2:10
|
2 | use syn::export::Span;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/info_extractor/item_trait_info.rs:3:10
|
3 | use syn::export::Span;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/metadata/metadata_generator.rs:4:10
|
4 | use syn::export::TokenStream2;
| ^^^^^^ could not find `export` in `syn`
error[E0432]: unresolved import `syn::export`
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/metadata/metadata_visitor.rs:8:10
|
8 | use syn::export::{ToTokens, TokenStream2};
| ^^^^^^ could not find `export` in `syn`
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0432`.
error: could not compile `borsh-derive-internal`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error[E0599]: no method named `to_token_stream` found for reference `&syn::Ident` in the current scope
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/enum_schema.rs:11:25
|
11 | let name_str = name.to_token_stream().to_string();
| ^^^^^^^^^^^^^^^ method not found in `&syn::Ident`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use quote::ToTokens;`
error[E0599]: no method named `to_token_stream` found for struct `syn::Ident` in the current scope
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/enum_schema.rs:25:46
|
25 | let variant_name_str = variant.ident.to_token_stream().to_string();
| ^^^^^^^^^^^^^^^ method not found in `syn::Ident`
|
::: /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.8/src/to_tokens.rs:61:8
|
61 | fn to_token_stream(&self) -> TokenStream {
| ---------------
| |
| the method is available for `std::boxed::Box<syn::Ident>` here
| the method is available for `Rc<syn::Ident>` here
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use quote::ToTokens;`
error[E0631]: type mismatch in closure arguments
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/attr_sig_info.rs:173:14
|
173 | .fold(TokenStream2::new(), |acc, (idx, arg)| {
| ^^^^ ----------------- found signature of `fn(_, (_, ArgInfo)) -> _`
| |
| expected signature of `fn([type error], (usize, &ArgInfo)) -> _`
error[E0631]: type mismatch in closure arguments
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/code_generator/attr_sig_info.rs:207:14
|
207 | .fold(TokenStream2::new(), |acc, arg| {
| ^^^^ ---------- found signature of `fn(_, ArgInfo) -> _`
| |
| expected signature of `fn([type error], &ArgInfo) -> _`
error[E0599]: no method named `to_token_stream` found for reference `&syn::Ident` in the current scope
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/struct_schema.rs:8:25
|
8 | let name_str = name.to_token_stream().to_string();
| ^^^^^^^^^^^^^^^ method not found in `&syn::Ident`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use quote::ToTokens;`
error[E0599]: no method named `to_token_stream` found for reference `&syn::Ident` in the current scope
--> /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/borsh-schema-derive-internal-0.7.1/src/struct_schema.rs:24:64
|
24 | let field_name = field.ident.as_ref().unwrap().to_token_stream().to_string();
| ^^^^^^^^^^^^^^^ method not found in `&syn::Ident`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use quote::ToTokens;`
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error[E0599]: no method named `to_token_stream` found for struct `syn::Path` in the current scope
--> /home/thor/.cargo/git/checkouts/near-sdk-rs-7ba52202f378a9d9/477056f/near-sdk-core/src/metadata/metadata_visitor.rs:25:35
|
25 | .any(|attr| attr.path.to_token_stream().to_string().as_str() == "near_bindgen");
| ^^^^^^^^^^^^^^^ method not found in `syn::Path`
|
::: /home/thor/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.8/src/to_tokens.rs:61:8
|
61 | fn to_token_stream(&self) -> TokenStream {
| ---------------
| |
| the method is available for `std::boxed::Box<syn::Path>` here
| the method is available for `Rc<syn::Path>` here
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use quote::ToTokens;`
error: aborting due to 14 previous errors
Some errors have detailed explanations: E0432, E0599, E0631.
For more information about an error, try `rustc --explain E0432`.
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment