[INFO] fetching crate scanner-syn 0.2.0... [INFO] checking scanner-syn-0.2.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate scanner-syn 0.2.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate scanner-syn 0.2.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 19 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.77) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99ed7a0c6889d71e9d33b02749434af51a5e36c135565fd5cf01d9b483b6b8bb [INFO] running `Command { std: "docker" "start" "-a" "99ed7a0c6889d71e9d33b02749434af51a5e36c135565fd5cf01d9b483b6b8bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99ed7a0c6889d71e9d33b02749434af51a5e36c135565fd5cf01d9b483b6b8bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99ed7a0c6889d71e9d33b02749434af51a5e36c135565fd5cf01d9b483b6b8bb", kill_on_drop: false }` [INFO] [stdout] 99ed7a0c6889d71e9d33b02749434af51a5e36c135565fd5cf01d9b483b6b8bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c416f47ac5b729f6725985d4196dce408184c30e567db35564a24b0b834aed8 [INFO] running `Command { std: "docker" "start" "-a" "7c416f47ac5b729f6725985d4196dce408184c30e567db35564a24b0b834aed8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking 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: 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: 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: 32 warnings emitted [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] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.50s [INFO] running `Command { std: "docker" "inspect" "7c416f47ac5b729f6725985d4196dce408184c30e567db35564a24b0b834aed8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c416f47ac5b729f6725985d4196dce408184c30e567db35564a24b0b834aed8", kill_on_drop: false }` [INFO] [stdout] 7c416f47ac5b729f6725985d4196dce408184c30e567db35564a24b0b834aed8