[INFO] fetching crate scanner-syn 0.2.0... [INFO] testing scanner-syn-0.2.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate scanner-syn 0.2.0 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scanner-syn 0.2.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "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.117) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c339b200b5c4b0abd045657588c4bb8098a62516df6875cbeecbcb90db240b2 [INFO] running `Command { std: "docker" "start" "-a" "0c339b200b5c4b0abd045657588c4bb8098a62516df6875cbeecbcb90db240b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c339b200b5c4b0abd045657588c4bb8098a62516df6875cbeecbcb90db240b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c339b200b5c4b0abd045657588c4bb8098a62516df6875cbeecbcb90db240b2", kill_on_drop: false }` [INFO] [stdout] 0c339b200b5c4b0abd045657588c4bb8098a62516df6875cbeecbcb90db240b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 931b866b5b4cbde4197582f8df9bf5f005348c39797e60e79fc5e561e2c63b1b [INFO] running `Command { std: "docker" "start" "-a" "931b866b5b4cbde4197582f8df9bf5f005348c39797e60e79fc5e561e2c63b1b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling quote v1.0.45 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 7.80s [INFO] running `Command { std: "docker" "inspect" "931b866b5b4cbde4197582f8df9bf5f005348c39797e60e79fc5e561e2c63b1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "931b866b5b4cbde4197582f8df9bf5f005348c39797e60e79fc5e561e2c63b1b", kill_on_drop: false }` [INFO] [stdout] 931b866b5b4cbde4197582f8df9bf5f005348c39797e60e79fc5e561e2c63b1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9cc392af1c6eaba164109f992f24bfd722d4797c80ea58e82ac8e80e86a28214 [INFO] running `Command { std: "docker" "start" "-a" "9cc392af1c6eaba164109f992f24bfd722d4797c80ea58e82ac8e80e86a28214", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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.55s [INFO] running `Command { std: "docker" "inspect" "9cc392af1c6eaba164109f992f24bfd722d4797c80ea58e82ac8e80e86a28214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cc392af1c6eaba164109f992f24bfd722d4797c80ea58e82ac8e80e86a28214", kill_on_drop: false }` [INFO] [stdout] 9cc392af1c6eaba164109f992f24bfd722d4797c80ea58e82ac8e80e86a28214 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 08f94f120a5a354e4fcde855de0087154611fbed8264aae300fc544c575f2fef [INFO] running `Command { std: "docker" "start" "-a" "08f94f120a5a354e4fcde855de0087154611fbed8264aae300fc544c575f2fef", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [stdout] [INFO] [stderr] 16 | pub fn new(original: &mut TraitItemMethod) -> syn::Result { [INFO] [stdout] running 28 tests [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] [stdout] test core_impl::code_generator::item_impl_info::tests::arg_no_return_no_mut ... ok [INFO] [stderr] | ^^ [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::arg_ref ... ok [INFO] [stderr] [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::arg_mut_ref ... ok [INFO] [stderr] warning: function `parse_statements` is never used [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_no_return_mut ... ok [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:4:8 [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_return_mut_borsh ... ok [INFO] [stderr] | [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_mixed_serialization ... ok [INFO] [stderr] 4 | pub fn parse_statements(stmts: &[Stmt], functions_called: &mut Vec) { [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_return_ref ... ok [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_only ... ok [INFO] [stderr] [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::init_ignore_state ... ok [INFO] [stderr] warning: function `parse_item` is never used [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_vec ... ok [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:19:4 [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::init_payable ... ok [INFO] [stderr] | [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args ... ok [INFO] [stderr] 19 | fn parse_item(it: &syn::Item, functions_called: &mut Vec) { [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::marshall_borsh ... ok [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::marshall_one_arg ... ok [INFO] [stderr] [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::no_args_no_return_mut ... ok [INFO] [stderr] warning: function `parse_expr` is never used [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::owned_no_args_no_return_no_mut ... ok [INFO] [stderr] --> src/core_impl/info_extractor/statements_parser.rs:44:4 [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::args_return_mut ... ok [INFO] [stderr] | [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::mut_owned_no_args_no_return ... ok [INFO] [stderr] 44 | fn parse_expr(expr: &Expr, functions_called: &mut Vec) { [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::no_args_no_return_mut_payable ... ok [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::init_no_return ... ok [INFO] [stderr] [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::callback_args_results ... ok [INFO] [stderr] warning: `scanner-syn` (lib) generated 32 warnings (run `cargo fix --lib -p scanner-syn` to apply 13 suggestions) [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::trait_implt ... ok [INFO] [stderr] warning: methods `wrapper_code` and `marshall_code` are never used [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::private_method ... ok [INFO] [stderr] --> src/core_impl/code_generator/item_impl_info.rs:7:12 [INFO] [stdout] test core_impl::code_generator::item_trait_info::tests::standard ... ok [INFO] [stderr] | [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::simple_init ... ok [INFO] [stderr] 5 | impl ItemImplInfo { [INFO] [stdout] test core_impl::code_generator::item_trait_info::tests::serialize_with_borsh ... ok [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stdout] test core_impl::code_generator::item_impl_info::tests::no_args_no_return_no_mut ... ok [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)]` (part of `#[warn(unused)]`) 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.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scanner_syn-3b30d584c2531f44) [INFO] [stdout] test core_impl::metadata::metadata_visitor::tests::several_methods ... FAILED [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' (44) 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: 0x629e10f60f9a - std[31e582c13f4e914f]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x629e10f60f9a - std[31e582c13f4e914f]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x629e10f60f9a - std[31e582c13f4e914f]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x629e10f60f9a - <::print::DisplayBacktrace as core[fa0eadad68403074]::fmt::Display>::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x629e10f7509a - ::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x629e10f7509a - core[fa0eadad68403074]::fmt::write [INFO] [stdout] 6: 0x629e10f65922 - std[31e582c13f4e914f]::io::default_write_fmt::> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x629e10f65922 - as std[31e582c13f4e914f]::io::Write>::write_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x629e10f4009f - ::print [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x629e10f4009f - std[31e582c13f4e914f]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x629e10f593f9 - std[31e582c13f4e914f]::panicking::default_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x629e10dade0c - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x629e10dade0c - test[7530e63dc052480e]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x629e10f59672 - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x629e10f59672 - std[31e582c13f4e914f]::panicking::panic_with_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x629e10f40158 - std[31e582c13f4e914f]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x629e10f35339 - std[31e582c13f4e914f]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x629e10f40e6d - __rustc[fc8e3a9f23f26cb]::rust_begin_unwind [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x629e10f758dc - core[fa0eadad68403074]::panicking::panic_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x629e10f75793 - core[fa0eadad68403074]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x629e10d8dfcb - core[fa0eadad68403074]::panicking::assert_failed:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x629e10d8b291 - scanner_syn[fd4c4399f51210a8]::core_impl::metadata::metadata_visitor::tests::several_methods [INFO] [stdout] at /opt/rustwide/workdir/src/core_impl/metadata/metadata_visitor.rs:252:9 [INFO] [stdout] 22: 0x629e10d86be7 - scanner_syn[fd4c4399f51210a8]::core_impl::metadata::metadata_visitor::tests::several_methods::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/core_impl/metadata/metadata_visitor.rs:172:25 [INFO] [stdout] 23: 0x629e10d8d366 - >::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x629e10da1eeb - core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x629e10da1eeb - test[7530e63dc052480e]::__rust_begin_short_backtrace::, fn() -> core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x629e10dae8db - test[7530e63dc052480e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x629e10dae8db - as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 28: 0x629e10dae8db - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x629e10dae8db - std[31e582c13f4e914f]::panicking::catch_unwind::, core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x629e10dae8db - std[31e582c13f4e914f]::panic::catch_unwind::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x629e10dae8db - test[7530e63dc052480e]::run_test_in_process [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x629e10dae8db - test[7530e63dc052480e]::run_test::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x629e10da8d34 - test[7530e63dc052480e]::run_test::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x629e10da8d34 - std[31e582c13f4e914f]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x629e10db14e2 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x629e10db14e2 - ::{closure#1}::{closure#0}> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 37: 0x629e10db14e2 - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x629e10db14e2 - std[31e582c13f4e914f]::panicking::catch_unwind::<(), core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x629e10db14e2 - std[31e582c13f4e914f]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x629e10db14e2 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x629e10db14e2 - ::{closure#1} as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x629e10f6089f - + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 43: 0x629e10f6089f - ::new::thread_start [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 44: 0x7b64294c9aa4 - [INFO] [stdout] 45: 0x7b6429556a64 - 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.04s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "08f94f120a5a354e4fcde855de0087154611fbed8264aae300fc544c575f2fef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08f94f120a5a354e4fcde855de0087154611fbed8264aae300fc544c575f2fef", kill_on_drop: false }` [INFO] [stdout] 08f94f120a5a354e4fcde855de0087154611fbed8264aae300fc544c575f2fef