[INFO] fetching crate scanner-syn 0.2.0... [INFO] testing scanner-syn-0.2.0 against 1.90.0 for beta-1.91-3 [INFO] extracting crate scanner-syn 0.2.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate scanner-syn 0.2.0 [INFO] finished tweaking crates.io crate scanner-syn 0.2.0 [INFO] tweaked toml for crates.io crate scanner-syn 0.2.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scanner-syn 0.2.0 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 10 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9065a0f0d8c689a42a0e8bdc8fffaee336857c42fb1176129aef746b3ab3b80c [INFO] running `Command { std: "docker" "start" "-a" "9065a0f0d8c689a42a0e8bdc8fffaee336857c42fb1176129aef746b3ab3b80c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9065a0f0d8c689a42a0e8bdc8fffaee336857c42fb1176129aef746b3ab3b80c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9065a0f0d8c689a42a0e8bdc8fffaee336857c42fb1176129aef746b3ab3b80c", kill_on_drop: false }` [INFO] [stdout] 9065a0f0d8c689a42a0e8bdc8fffaee336857c42fb1176129aef746b3ab3b80c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec6fddf53c64d3687a84a9534841e47ba099ca7d577a041ea6df7252b8d120b4 [INFO] running `Command { std: "docker" "start" "-a" "ec6fddf53c64d3687a84a9534841e47ba099ca7d577a041ea6df7252b8d120b4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling scanner-syn v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `attr_sig_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use attr_sig_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_item_method_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use impl_item_method_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_trait_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use item_trait_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trait_item_method_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use trait_item_method_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_impl_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use item_impl_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_struct_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use item_struct_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `statements_parser::parse_statements` [INFO] [stdout] --> src/core_impl/info_extractor/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use statements_parser::parse_statements; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core_impl/metadata/metadata_visitor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quote` [INFO] [stdout] --> src/core_impl/metadata/metadata_visitor.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use quote::{quote, ToTokens}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `code_generator::*` [INFO] [stdout] --> src/core_impl/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use code_generator::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ident` [INFO] [stdout] --> src/contract_descriptor.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use proc_macro2::{Ident, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct` and `Item` [INFO] [stdout] --> src/contract_descriptor.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use syn::{Item, ItemStruct}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | syn::Expr::Call(c) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `decomposition_pattern`, `constructor_expr`, `arg_list`, `pat_type_list`, `callback_deserialization`, and `callback_vec_deserialization` are never used [INFO] [stdout] --> src/core_impl/code_generator/attr_sig_info.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl AttrSigInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn decomposition_pattern(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn constructor_expr(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn arg_list(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn pat_type_list(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn callback_deserialization(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn callback_vec_deserialization(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_data` is never used [INFO] [stdout] --> src/core_impl/code_generator/attr_sig_info.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn deserialize_data(ty: &SerializerType) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `method_wrapper` and `marshal_method` are never used [INFO] [stdout] --> src/core_impl/code_generator/impl_item_method_info.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ImplItemMethodInfo { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 9 | /// Generate wrapper method for the given method of the contract. [INFO] [stdout] 10 | pub fn method_wrapper(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn marshal_method(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_serialize` is never used [INFO] [stdout] --> src/core_impl/code_generator/impl_item_method_info.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn json_serialize(attr_signature_info: &AttrSigInfo) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wrapped_module` is never used [INFO] [stdout] --> src/core_impl/code_generator/item_trait_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ItemTraitInfo { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 6 | /// Generate code that wrapps external calls. [INFO] [stdout] 7 | pub fn wrapped_module(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `method_wrapper` and `generate_serialier` are never used [INFO] [stdout] --> src/core_impl/code_generator/trait_item_method_info.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl TraitItemMethodInfo { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 9 | /// Generate code that wraps the method. [INFO] [stdout] 10 | pub fn method_wrapper(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn generate_serialier( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wrapper_code` and `marshall_code` are never used [INFO] [stdout] --> src/core_impl/code_generator/item_impl_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ItemImplInfo { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 6 | /// Generate the code that wraps [INFO] [stdout] 7 | pub fn wrapper_code(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn marshall_code(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_proxy_struct` is never used [INFO] [stdout] --> src/core_impl/code_generator/item_struct_info.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_proxy_struct(input: &ItemStruct) -> proc_macro2::TokenStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Serialization` is never constructed [INFO] [stdout] --> src/core_impl/info_extractor/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum InputStructType { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 52 | Serialization, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `non_bindgen_attrs`, `pat_reference`, `pat_mutability`, `reference`, `mutability`, and `original` are never read [INFO] [stdout] --> src/core_impl/info_extractor/arg_info.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ArgInfo { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 19 | /// Attributes not related to bindgen. [INFO] [stdout] 20 | pub non_bindgen_attrs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub pat_reference: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | /// Whether pattern has a preceded `mut`. [INFO] [stdout] 26 | pub pat_mutability: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | /// Whether the `TYPE` starts with `&`. [INFO] [stdout] 28 | pub reference: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | /// Whether `TYPE` starts with `&mut`. Can only be set together with the `reference`. [INFO] [stdout] 30 | pub mutability: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub original: PatType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `non_bindgen_attrs`, `result_serializer`, and `original_sig` are never read [INFO] [stdout] --> src/core_impl/info_extractor/attr_sig_info.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AttrSigInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub non_bindgen_attrs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub result_serializer: SerializerType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub original_sig: Signature, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TraitItemMethodInfo` is never constructed [INFO] [stdout] --> src/core_impl/info_extractor/trait_item_method_info.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TraitItemMethodInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core_impl/info_extractor/trait_item_method_info.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TraitItemMethodInfo { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn new(original: &mut TraitItemMethod) -> syn::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemTraitInfo` is never constructed [INFO] [stdout] --> src/core_impl/info_extractor/item_trait_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ItemTraitInfo { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core_impl/info_extractor/item_trait_info.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ItemTraitInfo { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new(original: &mut ItemTrait, mod_name_override: Option) -> syn::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_trait_impl`, `has_near_sdk_attr`, and `ty` are never read [INFO] [stdout] --> src/core_impl/info_extractor/item_impl_info.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ItemImplInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 7 | /// Whether this is a trait implementation. [INFO] [stdout] 8 | pub is_trait_impl: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | /// Whether `impl` section decorated with `#[near_bindgen]` [INFO] [stdout] 10 | pub has_near_sdk_attr: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | /// The type for which this `impl` is written. [INFO] [stdout] 12 | pub ty: Type, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_statements` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn parse_statements(stmts: &[Stmt], functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_item` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_item(it: &syn::Item, functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn parse_expr(expr: &Expr, functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.18s [INFO] running `Command { std: "docker" "inspect" "ec6fddf53c64d3687a84a9534841e47ba099ca7d577a041ea6df7252b8d120b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec6fddf53c64d3687a84a9534841e47ba099ca7d577a041ea6df7252b8d120b4", kill_on_drop: false }` [INFO] [stdout] ec6fddf53c64d3687a84a9534841e47ba099ca7d577a041ea6df7252b8d120b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e99e8d79949bf32972e0d064afc0bc767072bac728eff8861214267ff568aed [INFO] running `Command { std: "docker" "start" "-a" "9e99e8d79949bf32972e0d064afc0bc767072bac728eff8861214267ff568aed", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `attr_sig_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use attr_sig_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling scanner-syn v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `impl_item_method_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use impl_item_method_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_trait_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use item_trait_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trait_item_method_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use trait_item_method_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_impl_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use item_impl_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_struct_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use item_struct_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `statements_parser::parse_statements` [INFO] [stdout] --> src/core_impl/info_extractor/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use statements_parser::parse_statements; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core_impl/metadata/metadata_visitor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quote` [INFO] [stdout] --> src/core_impl/metadata/metadata_visitor.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use quote::{quote, ToTokens}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `code_generator::*` [INFO] [stdout] --> src/core_impl/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use code_generator::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ident` [INFO] [stdout] --> src/contract_descriptor.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use proc_macro2::{Ident, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct` and `Item` [INFO] [stdout] --> src/contract_descriptor.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use syn::{Item, ItemStruct}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | syn::Expr::Call(c) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `decomposition_pattern`, `constructor_expr`, `arg_list`, `pat_type_list`, `callback_deserialization`, and `callback_vec_deserialization` are never used [INFO] [stdout] --> src/core_impl/code_generator/attr_sig_info.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl AttrSigInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn decomposition_pattern(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn constructor_expr(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn arg_list(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn pat_type_list(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn callback_deserialization(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn callback_vec_deserialization(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_data` is never used [INFO] [stdout] --> src/core_impl/code_generator/attr_sig_info.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn deserialize_data(ty: &SerializerType) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `method_wrapper` and `marshal_method` are never used [INFO] [stdout] --> src/core_impl/code_generator/impl_item_method_info.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ImplItemMethodInfo { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 9 | /// Generate wrapper method for the given method of the contract. [INFO] [stdout] 10 | pub fn method_wrapper(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn marshal_method(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_serialize` is never used [INFO] [stdout] --> src/core_impl/code_generator/impl_item_method_info.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn json_serialize(attr_signature_info: &AttrSigInfo) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wrapped_module` is never used [INFO] [stdout] --> src/core_impl/code_generator/item_trait_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ItemTraitInfo { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 6 | /// Generate code that wrapps external calls. [INFO] [stdout] 7 | pub fn wrapped_module(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `method_wrapper` and `generate_serialier` are never used [INFO] [stdout] --> src/core_impl/code_generator/trait_item_method_info.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl TraitItemMethodInfo { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 9 | /// Generate code that wraps the method. [INFO] [stdout] 10 | pub fn method_wrapper(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn generate_serialier( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wrapper_code` and `marshall_code` are never used [INFO] [stdout] --> src/core_impl/code_generator/item_impl_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ItemImplInfo { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 6 | /// Generate the code that wraps [INFO] [stdout] 7 | pub fn wrapper_code(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn marshall_code(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_proxy_struct` is never used [INFO] [stdout] --> src/core_impl/code_generator/item_struct_info.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_proxy_struct(input: &ItemStruct) -> proc_macro2::TokenStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Serialization` is never constructed [INFO] [stdout] --> src/core_impl/info_extractor/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum InputStructType { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 52 | Serialization, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `non_bindgen_attrs`, `pat_reference`, `pat_mutability`, `reference`, `mutability`, and `original` are never read [INFO] [stdout] --> src/core_impl/info_extractor/arg_info.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ArgInfo { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 19 | /// Attributes not related to bindgen. [INFO] [stdout] 20 | pub non_bindgen_attrs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub pat_reference: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | /// Whether pattern has a preceded `mut`. [INFO] [stdout] 26 | pub pat_mutability: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | /// Whether the `TYPE` starts with `&`. [INFO] [stdout] 28 | pub reference: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | /// Whether `TYPE` starts with `&mut`. Can only be set together with the `reference`. [INFO] [stdout] 30 | pub mutability: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub original: PatType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `non_bindgen_attrs`, `result_serializer`, and `original_sig` are never read [INFO] [stdout] --> src/core_impl/info_extractor/attr_sig_info.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AttrSigInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub non_bindgen_attrs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub result_serializer: SerializerType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub original_sig: Signature, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TraitItemMethodInfo` is never constructed [INFO] [stdout] --> src/core_impl/info_extractor/trait_item_method_info.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TraitItemMethodInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core_impl/info_extractor/trait_item_method_info.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TraitItemMethodInfo { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn new(original: &mut TraitItemMethod) -> syn::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemTraitInfo` is never constructed [INFO] [stdout] --> src/core_impl/info_extractor/item_trait_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ItemTraitInfo { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core_impl/info_extractor/item_trait_info.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ItemTraitInfo { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new(original: &mut ItemTrait, mod_name_override: Option) -> syn::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_trait_impl`, `has_near_sdk_attr`, and `ty` are never read [INFO] [stdout] --> src/core_impl/info_extractor/item_impl_info.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ItemImplInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 7 | /// Whether this is a trait implementation. [INFO] [stdout] 8 | pub is_trait_impl: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | /// Whether `impl` section decorated with `#[near_bindgen]` [INFO] [stdout] 10 | pub has_near_sdk_attr: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | /// The type for which this `impl` is written. [INFO] [stdout] 12 | pub ty: Type, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_statements` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn parse_statements(stmts: &[Stmt], functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_item` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_item(it: &syn::Item, functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn parse_expr(expr: &Expr, functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `attr_sig_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use attr_sig_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_item_method_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use impl_item_method_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_trait_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use item_trait_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trait_item_method_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use trait_item_method_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_impl_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use item_impl_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `item_struct_info::*` [INFO] [stdout] --> src/core_impl/code_generator/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use item_struct_info::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `statements_parser::parse_statements` [INFO] [stdout] --> src/core_impl/info_extractor/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use statements_parser::parse_statements; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/core_impl/metadata/metadata_visitor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quote` [INFO] [stdout] --> src/core_impl/metadata/metadata_visitor.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use quote::{quote, ToTokens}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `code_generator::*` [INFO] [stdout] --> src/core_impl/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use code_generator::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ident` [INFO] [stdout] --> src/contract_descriptor.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use proc_macro2::{Ident, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct` and `Item` [INFO] [stdout] --> src/contract_descriptor.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use syn::{Item, ItemStruct}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | syn::Expr::Call(c) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wrapper_code` and `marshall_code` are never used [INFO] [stdout] --> src/core_impl/code_generator/item_impl_info.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ItemImplInfo { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 6 | /// Generate the code that wraps [INFO] [stdout] 7 | pub fn wrapper_code(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn marshall_code(&self) -> TokenStream2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_proxy_struct` is never used [INFO] [stdout] --> src/core_impl/code_generator/item_struct_info.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_proxy_struct(input: &ItemStruct) -> proc_macro2::TokenStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `non_bindgen_attrs`, `pat_reference`, and `pat_mutability` are never read [INFO] [stdout] --> src/core_impl/info_extractor/arg_info.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ArgInfo { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 19 | /// Attributes not related to bindgen. [INFO] [stdout] 20 | pub non_bindgen_attrs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub pat_reference: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 25 | /// Whether pattern has a preceded `mut`. [INFO] [stdout] 26 | pub pat_mutability: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `original` is never read [INFO] [stdout] --> src/core_impl/info_extractor/trait_item_method_info.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TraitItemMethodInfo { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub original: TraitItemMethod, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `original` is never read [INFO] [stdout] --> src/core_impl/info_extractor/item_trait_info.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ItemTraitInfo { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub original: ItemTrait, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_trait_impl`, `has_near_sdk_attr`, and `ty` are never read [INFO] [stdout] --> src/core_impl/info_extractor/item_impl_info.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ItemImplInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 7 | /// Whether this is a trait implementation. [INFO] [stdout] 8 | pub is_trait_impl: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | /// Whether `impl` section decorated with `#[near_bindgen]` [INFO] [stdout] 10 | pub has_near_sdk_attr: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | /// The type for which this `impl` is written. [INFO] [stdout] 12 | pub ty: Type, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_statements` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn parse_statements(stmts: &[Stmt], functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_item` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_item(it: &syn::Item, functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expr` is never used [INFO] [stdout] --> src/core_impl/info_extractor/statements_parser.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn parse_expr(expr: &Expr, functions_called: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "9e99e8d79949bf32972e0d064afc0bc767072bac728eff8861214267ff568aed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e99e8d79949bf32972e0d064afc0bc767072bac728eff8861214267ff568aed", kill_on_drop: false }` [INFO] [stdout] 9e99e8d79949bf32972e0d064afc0bc767072bac728eff8861214267ff568aed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 244b68285482622ac84dde56df97d16d8f3a33b7385b8e2c2971ad46c3b51a74 [INFO] running `Command { std: "docker" "start" "-a" "244b68285482622ac84dde56df97d16d8f3a33b7385b8e2c2971ad46c3b51a74", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `attr_sig_info::*` [INFO] [stderr] --> src/core_impl/code_generator/mod.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub use attr_sig_info::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `impl_item_method_info::*` [INFO] [stderr] --> src/core_impl/code_generator/mod.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub use impl_item_method_info::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `item_trait_info::*` [INFO] [stderr] --> src/core_impl/code_generator/mod.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub use item_trait_info::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `trait_item_method_info::*` [INFO] [stderr] --> src/core_impl/code_generator/mod.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub use trait_item_method_info::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `item_impl_info::*` [INFO] [stderr] --> src/core_impl/code_generator/mod.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | pub use item_impl_info::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `item_struct_info::*` [INFO] [stderr] --> src/core_impl/code_generator/mod.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub use item_struct_info::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `statements_parser::parse_statements` [INFO] [stderr] --> src/core_impl/info_extractor/mod.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | pub use statements_parser::parse_statements; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/core_impl/metadata/metadata_visitor.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `quote` [INFO] [stderr] --> src/core_impl/metadata/metadata_visitor.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use quote::{quote, ToTokens}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `code_generator::*` [INFO] [stderr] --> src/core_impl/mod.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub use code_generator::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Ident` [INFO] [stderr] --> src/contract_descriptor.rs:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | use proc_macro2::{Ident, Span}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ItemStruct` and `Item` [INFO] [stderr] --> src/contract_descriptor.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | use syn::{Item, ItemStruct}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:60:25 [INFO] [stderr] | [INFO] [stderr] 60 | syn::Expr::Call(c) => todo!(), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `decomposition_pattern`, `constructor_expr`, `arg_list`, `pat_type_list`, `callback_deserialization`, and `callback_vec_deserialization` are never used [INFO] [stderr] --> src/core_impl/code_generator/attr_sig_info.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl AttrSigInfo { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 79 | pub fn decomposition_pattern(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 110 | pub fn constructor_expr(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 137 | pub fn arg_list(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | pub fn pat_type_list(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub fn callback_deserialization(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 220 | pub fn callback_vec_deserialization(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `deserialize_data` is never used [INFO] [stderr] --> src/core_impl/code_generator/attr_sig_info.rs:243:8 [INFO] [stderr] | [INFO] [stderr] 243 | pub fn deserialize_data(ty: &SerializerType) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `method_wrapper` and `marshal_method` are never used [INFO] [stderr] --> src/core_impl/code_generator/impl_item_method_info.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl ImplItemMethodInfo { [INFO] [stderr] | ----------------------- methods in this implementation [INFO] [stderr] 9 | /// Generate wrapper method for the given method of the contract. [INFO] [stderr] 10 | pub fn method_wrapper(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 187 | pub fn marshal_method(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `json_serialize` is never used [INFO] [stderr] --> src/core_impl/code_generator/impl_item_method_info.rs:251:4 [INFO] [stderr] | [INFO] [stderr] 251 | fn json_serialize(attr_signature_info: &AttrSigInfo) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `wrapped_module` is never used [INFO] [stderr] --> src/core_impl/code_generator/item_trait_info.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl ItemTraitInfo { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] 6 | /// Generate code that wrapps external calls. [INFO] [stderr] 7 | pub fn wrapped_module(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `method_wrapper` and `generate_serialier` are never used [INFO] [stderr] --> src/core_impl/code_generator/trait_item_method_info.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl TraitItemMethodInfo { [INFO] [stderr] | ------------------------ associated items in this implementation [INFO] [stderr] 9 | /// Generate code that wraps the method. [INFO] [stderr] 10 | pub fn method_wrapper(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn generate_serialier( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `wrapper_code` and `marshall_code` are never used [INFO] [stderr] --> src/core_impl/code_generator/item_impl_info.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl ItemImplInfo { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] 6 | /// Generate the code that wraps [INFO] [stderr] 7 | pub fn wrapper_code(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn marshall_code(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `generate_proxy_struct` is never used [INFO] [stderr] --> src/core_impl/code_generator/item_struct_info.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn generate_proxy_struct(input: &ItemStruct) -> proc_macro2::TokenStream { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Serialization` is never constructed [INFO] [stderr] --> src/core_impl/info_extractor/mod.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 51 | pub enum InputStructType { [INFO] [stderr] | --------------- variant in this enum [INFO] [stderr] 52 | Serialization, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `non_bindgen_attrs`, `pat_reference`, `pat_mutability`, `reference`, `mutability`, and `original` are never read [INFO] [stderr] --> src/core_impl/info_extractor/arg_info.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct ArgInfo { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 19 | /// Attributes not related to bindgen. [INFO] [stderr] 20 | pub non_bindgen_attrs: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub pat_reference: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 25 | /// Whether pattern has a preceded `mut`. [INFO] [stderr] 26 | pub pat_mutability: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 27 | /// Whether the `TYPE` starts with `&`. [INFO] [stderr] 28 | pub reference: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 29 | /// Whether `TYPE` starts with `&mut`. Can only be set together with the `reference`. [INFO] [stderr] 30 | pub mutability: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub original: PatType, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `non_bindgen_attrs`, `result_serializer`, and `original_sig` are never read [INFO] [stderr] --> src/core_impl/info_extractor/attr_sig_info.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct AttrSigInfo { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | pub non_bindgen_attrs: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub result_serializer: SerializerType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub original_sig: Signature, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TraitItemMethodInfo` is never constructed [INFO] [stderr] --> src/core_impl/info_extractor/trait_item_method_info.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct TraitItemMethodInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/core_impl/info_extractor/trait_item_method_info.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl TraitItemMethodInfo { [INFO] [stderr] | ------------------------ associated function in this implementation [INFO] [stderr] 16 | pub fn new(original: &mut TraitItemMethod) -> syn::Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ItemTraitInfo` is never constructed [INFO] [stderr] --> src/core_impl/info_extractor/item_trait_info.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct ItemTraitInfo { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/core_impl/info_extractor/item_trait_info.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl ItemTraitInfo { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 17 | pub fn new(original: &mut ItemTrait, mod_name_override: Option) -> syn::Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `is_trait_impl`, `has_near_sdk_attr`, and `ty` are never read [INFO] [stderr] --> src/core_impl/info_extractor/item_impl_info.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct ItemImplInfo { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 7 | /// Whether this is a trait implementation. [INFO] [stderr] 8 | pub is_trait_impl: bool, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 9 | /// Whether `impl` section decorated with `#[near_bindgen]` [INFO] [stderr] 10 | pub has_near_sdk_attr: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | /// The type for which this `impl` is written. [INFO] [stderr] 12 | pub ty: Type, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_statements` is never used [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn parse_statements(stmts: &[Stmt], functions_called: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_item` is never used [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:19:4 [INFO] [stderr] | [INFO] [stderr] 19 | fn parse_item(it: &syn::Item, functions_called: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_expr` is never used [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:44:4 [INFO] [stderr] | [INFO] [stderr] 44 | fn parse_expr(expr: &Expr, functions_called: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `scanner-syn` (lib) generated 32 warnings (run `cargo fix --lib -p scanner-syn` to apply 12 suggestions) [INFO] [stderr] warning: methods `wrapper_code` and `marshall_code` are never used [INFO] [stderr] --> src/core_impl/code_generator/item_impl_info.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl ItemImplInfo { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] 6 | /// Generate the code that wraps [INFO] [stderr] 7 | pub fn wrapper_code(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn marshall_code(&self) -> TokenStream2 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `non_bindgen_attrs`, `pat_reference`, and `pat_mutability` are never read [INFO] [stderr] --> src/core_impl/info_extractor/arg_info.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct ArgInfo { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 19 | /// Attributes not related to bindgen. [INFO] [stderr] 20 | pub non_bindgen_attrs: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub pat_reference: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 25 | /// Whether pattern has a preceded `mut`. [INFO] [stderr] 26 | pub pat_mutability: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `original` is never read [INFO] [stderr] --> src/core_impl/info_extractor/trait_item_method_info.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct TraitItemMethodInfo { [INFO] [stderr] | ------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 10 | pub original: TraitItemMethod, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `original` is never read [INFO] [stderr] --> src/core_impl/info_extractor/item_trait_info.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct ItemTraitInfo { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | pub original: ItemTrait, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `scanner-syn` (lib test) generated 22 warnings (18 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scanner_syn-9baa48252661fbe7) [INFO] [stdout] [INFO] [stdout] running 28 tests [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::arg_mut_ref ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::arg_ref ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_return_mut ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_return_mut_borsh ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::init_payable ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::arg_no_return_no_mut ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::mut_owned_no_args_no_return ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::marshall_borsh ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::no_args_no_return_mut ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::no_args_no_return_no_mut ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::owned_no_args_no_return_no_mut ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::no_args_no_return_mut_payable ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_results ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_only ... ok [INFO] [stdout] test core_impl::code_generator::item_trait_info::tests::standard ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::private_method ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::simple_init ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_vec ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::init_no_return ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_return_ref ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_mixed_serialization ... ok [INFO] [stdout] test core_impl::metadata::metadata_visitor::tests::several_methods ... FAILED [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::init_ignore_state ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::marshall_one_arg ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_no_return_mut ... ok [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::trait_implt ... ok [INFO] [stdout] test core_impl::code_generator::item_trait_info::tests::serialize_with_borsh ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- core_impl::metadata::metadata_visitor::tests::several_methods stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'core_impl::metadata::metadata_visitor::tests::several_methods' panicked at src/core_impl/metadata/metadata_visitor.rs:252:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [cfg (target_arch = \"wasm32\")] # [no_mangle] pub extern \"C\" fn metadata () { near_sdk :: env :: setup_panic_hook () ; use borsh :: * ; let metadata = near_sdk :: Metadata :: new (vec ! [near_sdk :: MethodMetadata { name : \"f1\" . to_string () , is_view : true , is_init : false , args : None , callbacks : vec ! [] , callbacks_vec : None , result : None } , near_sdk :: MethodMetadata { name : \"f2\" . to_string () , is_view : false , is_init : false , args : { # [derive (borsh :: BorshSchema)] # [allow (dead_code)] # [derive (near_sdk :: serde :: Deserialize)] # [serde (crate = \"near_sdk::serde\")] struct Input { arg0 : FancyStruct , arg1 : u64 , } Some (Input :: schema_container ()) } , callbacks : vec ! [] , callbacks_vec : None , result : None } , near_sdk :: MethodMetadata { name : \"f3\" . to_string () , is_view : false , is_init : false , args : { # [derive (borsh :: BorshSchema)] # [allow (dead_code)] # [derive (near_sdk :: serde :: Deserialize)] # [serde (crate = \"near_sdk::serde\")] struct Input { arg0 : FancyStruct , arg1 : u64 , } Some (Input :: schema_container ()) } , callbacks : vec ! [] , callbacks_vec : None , result : Some (Result < IsOk , Error > :: schema_container ()) }]) ; let data = near_sdk :: borsh :: BorshSerialize :: try_to_vec (& metadata) . expect (\"Failed to serialize the metadata using Borsh\") ; near_sdk :: env :: value_return (& data) ; }" [INFO] [stdout] right: "FunctionInfo { name : \"f1\" , is_public : true , is_trait_impl : false , is_init : false , is_payable : false , is_view : true , is_mutable : false , is_process : true , is_private_cccalls : false , is_out_of_contract_scope : false , is_event : false } , FunctionInfo { name : \"f2\" , is_public : true , is_trait_impl : false , is_init : false , is_payable : false , is_view : false , is_mutable : true , is_process : true , is_private_cccalls : false , is_out_of_contract_scope : false , is_event : false } , FunctionInfo { name : \"f3\" , is_public : true , is_trait_impl : true , is_init : false , is_payable : false , is_view : false , is_mutable : true , is_process : false , is_private_cccalls : false , is_out_of_contract_scope : false , is_event : false }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x59cbc412fe12 - std::backtrace_rs::backtrace::libunwind::trace::h2d45396358f41939 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x59cbc412fe12 - std::backtrace_rs::backtrace::trace_unsynchronized::hffcefc0b67f1d6e2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x59cbc412fe12 - std::sys::backtrace::_print_fmt::hd72f71d23b436b92 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x59cbc412fe12 - ::fmt::hdcfcb6d4c8489523 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x59cbc41556d3 - core::fmt::rt::Argument::fmt::h2c56b3114963061a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x59cbc41556d3 - core::fmt::write::h8a494366950f23bb [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x59cbc412cd83 - std::io::default_write_fmt::h7b8824096454f323 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x59cbc412cd83 - std::io::Write::write_fmt::h4e71294925c334d0 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x59cbc412fc62 - std::sys::backtrace::BacktraceLock::print::hb2a626a81e06b2dc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x59cbc4131399 - std::panicking::default_hook::{{closure}}::h4f78485264f12d10 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x59cbc41311ce - std::panicking::default_hook::h2c66fc99e962531d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x59cbc3fb5b74 - as core::ops::function::Fn>::call::hb6bd65493727d71a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x59cbc3fb5b74 - test::test_main_with_exit_callback::{{closure}}::h60217ec76a0ece4a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x59cbc4131e6e - as core::ops::function::Fn>::call::h318e4efb8c1a5689 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x59cbc4131e6e - std::panicking::rust_panic_with_hook::h33ac55f64bbd807d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x59cbc4131b3a - std::panicking::begin_panic_handler::{{closure}}::h30e7cb89678a57fe [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x59cbc4130319 - std::sys::backtrace::__rust_end_short_backtrace::hed60f27456c16ced [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x59cbc41317cd - __rustc[de2ca18b4c54d5b8]::rust_begin_unwind [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x59cbc4154120 - core::panicking::panic_fmt::h62f63d096dd276af [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x59cbc4154473 - core::panicking::assert_failed_inner::h102b4539a88470c2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:448:17 [INFO] [stdout] 20: 0x59cbc3f5d687 - core::panicking::assert_failed::h96508f7792368f6b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:403:5 [INFO] [stdout] 21: 0x59cbc3f63a67 - scanner_syn::core_impl::metadata::metadata_visitor::tests::several_methods::hf9d6f934bf999a30 [INFO] [stdout] at /opt/rustwide/workdir/src/core_impl/metadata/metadata_visitor.rs:252:9 [INFO] [stdout] 22: 0x59cbc3f600e7 - scanner_syn::core_impl::metadata::metadata_visitor::tests::several_methods::{{closure}}::h1432181632a45f2c [INFO] [stdout] at /opt/rustwide/workdir/src/core_impl/metadata/metadata_visitor.rs:172:25 [INFO] [stdout] 23: 0x59cbc3f786e6 - core::ops::function::FnOnce::call_once::h9fe627e1536214c6 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x59cbc3fbb3db - core::ops::function::FnOnce::call_once::h1f9474f1347fff52 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 25: 0x59cbc3fbb3db - test::__rust_begin_short_backtrace::ha52ab26e77157f03 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x59cbc3fba515 - test::run_test_in_process::{{closure}}::h229c1a11a50b261f [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x59cbc3fba515 - as core::ops::function::FnOnce<()>>::call_once::h78821afbf97b39a9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x59cbc3fba515 - std::panicking::catch_unwind::do_call::h53abf3ed5bd32ba3 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x59cbc3fba515 - std::panicking::catch_unwind::h6deb5fe1e91873c9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x59cbc3fba515 - std::panic::catch_unwind::hea0829b6b565654b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x59cbc3fba515 - test::run_test_in_process::hdc44dfecea3db21b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x59cbc3fba515 - test::run_test::{{closure}}::h0364ba59bf23f652 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x59cbc3f7e114 - test::run_test::{{closure}}::h32730b304eec05da [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x59cbc3f7e114 - std::sys::backtrace::__rust_begin_short_backtrace::h177cb952fc54ad2c [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x59cbc3f81aea - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h119d903520007597 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x59cbc3f81aea - as core::ops::function::FnOnce<()>>::call_once::hab88401d606702a6 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x59cbc3f81aea - std::panicking::catch_unwind::do_call::h163fe12cca9901c2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x59cbc3f81aea - std::panicking::catch_unwind::he81557d0e17cc1bc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x59cbc3f81aea - std::panic::catch_unwind::hc2b8e79c20593955 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x59cbc3f81aea - std::thread::Builder::spawn_unchecked_::{{closure}}::hfa6b4978e07815cc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x59cbc3f81aea - core::ops::function::FnOnce::call_once{{vtable.shim}}::hddcd7484a13fd793 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 42: 0x59cbc4134eef - as core::ops::function::FnOnce>::call_once::h5924238c754de3b8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 43: 0x59cbc4134eef - std::sys::pal::unix::thread::Thread::new::thread_start::hb6e99e73da4d28f8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 44: 0x7e80fa227aa4 - [INFO] [stdout] 45: 0x7e80fa2b4a34 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] core_impl::metadata::metadata_visitor::tests::several_methods [INFO] [stdout] [INFO] [stdout] test result: FAILED. 27 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "244b68285482622ac84dde56df97d16d8f3a33b7385b8e2c2971ad46c3b51a74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "244b68285482622ac84dde56df97d16d8f3a33b7385b8e2c2971ad46c3b51a74", kill_on_drop: false }` [INFO] [stdout] 244b68285482622ac84dde56df97d16d8f3a33b7385b8e2c2971ad46c3b51a74