[INFO] cloning repository https://github.com/ArkProjectNFTs/block-issue-sample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ArkProjectNFTs/block-issue-sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArkProjectNFTs%2Fblock-issue-sample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArkProjectNFTs%2Fblock-issue-sample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb0a5bea14f07e9d1051fbcaa096abe1e7be0eb5 [INFO] building ArkProjectNFTs/block-issue-sample against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArkProjectNFTs%2Fblock-issue-sample" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ArkProjectNFTs/block-issue-sample [INFO] finished tweaking git repo https://github.com/ArkProjectNFTs/block-issue-sample [INFO] tweaked toml for git repo https://github.com/ArkProjectNFTs/block-issue-sample written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ArkProjectNFTs/block-issue-sample on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ArkProjectNFTs/block-issue-sample already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded starknet-signers v0.8.0 [INFO] [stderr] Downloaded starknet-curve v0.4.2 [INFO] [stderr] Downloaded starknet-ff v0.3.7 [INFO] [stderr] Downloaded bigdecimal v0.3.1 [INFO] [stderr] Downloaded cc v1.0.92 [INFO] [stderr] Downloaded starknet-crypto-codegen v0.3.3 [INFO] [stderr] Downloaded starknet-crypto v0.6.2 [INFO] [stderr] Downloaded termtree v0.4.1 [INFO] [stderr] Downloaded starknet-contract v0.9.0 [INFO] [stderr] Downloaded scrypt v0.10.0 [INFO] [stderr] Downloaded version-compare v0.1.1 [INFO] [stderr] Downloaded anstyle v1.0.6 [INFO] [stderr] Downloaded mockall v0.12.1 [INFO] [stderr] Downloaded ethbloom v0.13.0 [INFO] [stderr] Downloaded downcast v0.11.0 [INFO] [stderr] Downloaded predicates v3.1.0 [INFO] [stderr] Downloaded fragile v2.0.0 [INFO] [stderr] Downloaded impl-serde v0.4.0 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.6.9 [INFO] [stderr] Downloaded mockall_derive v0.12.1 [INFO] [stderr] Downloaded starknet-macros v0.1.7 [INFO] [stderr] Downloaded darling_macro v0.20.8 [INFO] [stderr] Downloaded impl-codec v0.6.0 [INFO] [stderr] Downloaded predicates-core v1.0.6 [INFO] [stderr] Downloaded primitive-types v0.12.2 [INFO] [stderr] Downloaded darling_core v0.20.8 [INFO] [stderr] Downloaded parity-scale-codec v3.6.9 [INFO] [stderr] Downloaded uint v0.9.5 [INFO] [stderr] Downloaded hyper v0.14.28 [INFO] [stderr] Downloaded auto_impl v1.2.0 [INFO] [stderr] Downloaded eth-keystore v0.5.0 [INFO] [stderr] Downloaded starknet-core v0.10.0 [INFO] [stderr] Downloaded serde_json_pythonic v0.1.2 [INFO] [stderr] Downloaded chrono v0.4.37 [INFO] [stderr] Downloaded predicates-tree v1.0.9 [INFO] [stderr] Downloaded starknet-accounts v0.9.0 [INFO] [stderr] Downloaded fixed-hash v0.8.0 [INFO] [stderr] Downloaded starknet-providers v0.10.0 [INFO] [stderr] Downloaded salsa20 v0.10.2 [INFO] [stderr] Downloaded rlp v0.5.2 [INFO] [stderr] Downloaded darling v0.20.8 [INFO] [stderr] Downloaded ethereum-types v0.14.1 [INFO] [stderr] Downloaded starknet v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 830e89f08de8111e6aa079434b12a8be03904b48bb639f6320fd58918ad9c124 [INFO] running `Command { std: "docker" "start" "-a" "830e89f08de8111e6aa079434b12a8be03904b48bb639f6320fd58918ad9c124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "830e89f08de8111e6aa079434b12a8be03904b48bb639f6320fd58918ad9c124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "830e89f08de8111e6aa079434b12a8be03904b48bb639f6320fd58918ad9c124", kill_on_drop: false }` [INFO] [stdout] 830e89f08de8111e6aa079434b12a8be03904b48bb639f6320fd58918ad9c124 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e648604a8c0f6ce8e5aed3619d3a82872774ccd070ce622b70ea42b0bec9279e [INFO] running `Command { std: "docker" "start" "-a" "e648604a8c0f6ce8e5aed3619d3a82872774ccd070ce622b70ea42b0bec9279e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling serde_json_pythonic v0.1.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling ark-std v0.4.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling scrypt v0.10.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling ark-serialize v0.4.2 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling predicates v3.1.0 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling auto_impl v1.2.0 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling ark-ff v0.4.2 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling mockall v0.12.1 [INFO] [stderr] Compiling serde_with v2.3.3 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling primitive-types v0.12.2 [INFO] [stderr] Compiling ethbloom v0.13.0 [INFO] [stderr] Compiling eth-keystore v0.5.0 [INFO] [stderr] Compiling starknet-ff v0.3.7 [INFO] [stderr] Compiling ethereum-types v0.14.1 [INFO] [stderr] Compiling starknet-curve v0.4.2 [INFO] [stderr] Compiling starknet-crypto-codegen v0.3.3 [INFO] [stderr] Compiling starknet-crypto v0.6.2 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling starknet-core v0.10.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling starknet-providers v0.10.0 [INFO] [stderr] Compiling starknet-signers v0.8.0 [INFO] [stderr] Compiling starknet-macros v0.1.7 [INFO] [stderr] Compiling starknet-accounts v0.9.0 [INFO] [stderr] Compiling starknet-contract v0.9.0 [INFO] [stderr] Compiling starknet v0.10.0 [INFO] [stderr] Compiling block-issue-sample v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `mock` [INFO] [stdout] --> src/starknet_utils/client/mod.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(any(test, feature = "mock"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `mock` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `mock` [INFO] [stdout] --> src/starknet_utils/client/mod.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | #[cfg_attr(any(test, feature = "mock"), automock)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `mock` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_hex_str` is never used [INFO] [stdout] --> src/starknet_utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn to_hex_str(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CairoU256` is never constructed [INFO] [stdout] --> src/starknet_utils.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CairoU256 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventResult` is never constructed [INFO] [stdout] --> src/starknet_utils.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct EventResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_biguint`, `to_hex`, `to_decimal`, and `from_hex_be` are never used [INFO] [stdout] --> src/starknet_utils.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CairoU256 { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 29 | pub fn to_biguint(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn to_hex(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn to_decimal(&self, padded: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn from_hex_be(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_WORD_LEN` is never used [INFO] [stdout] --> src/starknet_utils/byte_array.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const MAX_WORD_LEN: usize = 31; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ByteArray` is never constructed [INFO] [stdout] --> src/starknet_utils/byte_array.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ByteArray { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string` and `to_string` are never used [INFO] [stdout] --> src/starknet_utils/byte_array.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl ByteArray { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn from_string(string: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn to_string(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `felt_to_utf8` is never used [INFO] [stdout] --> src/starknet_utils/byte_array.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn felt_to_utf8(felt: &FieldElement, len: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/starknet_utils/cairo_string_parser.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_cairo_string` is never used [INFO] [stdout] --> src/starknet_utils/cairo_string_parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn parse_cairo_string(field_elements: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Contract`, `EntrypointNotFound`, `InputTooLong`, `InputTooShort`, and `Conversion` are never constructed [INFO] [stdout] --> src/starknet_utils/client/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum StarknetClientError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 13 | #[error("A contract error occurred: {0}")] [INFO] [stdout] 14 | Contract(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | #[error("Entry point not found: {0}")] [INFO] [stdout] 16 | EntrypointNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("Input too long for arguments")] [INFO] [stdout] 18 | InputTooLong, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | #[error("Input too short for arguments")] [INFO] [stdout] 20 | InputTooShort, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | #[error("Invalid value conversion: {0}")] [INFO] [stdout] 22 | Conversion(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StarknetClientError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/starknet_utils/client/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait StarknetClient { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 40 | async fn events_from_tx_receipt( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | async fn block_id_to_u64(&self, id: &BlockId) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn parse_block_range( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn parse_block_id(&self, id: &str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | async fn block_time(&self, block: BlockId) -> Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | async fn fetch_events( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn fetch_all_block_events( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | async fn call_contract( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INPUT_TOO_SHORT` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const INPUT_TOO_SHORT: &str = "0x496e70757420746f6f2073686f727420666f7220617267756d656e7473"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INPUT_TOO_LONG` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const INPUT_TOO_LONG: &str = "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FAILED_DESERIALIZE` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const FAILED_DESERIALIZE: &str = "0x4661696c656420746f20646573657269616c697a6520706172616d202331"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENTRYPOINT_NOT_FOUND` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const ENTRYPOINT_NOT_FOUND: &str = "not found in contract"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "e648604a8c0f6ce8e5aed3619d3a82872774ccd070ce622b70ea42b0bec9279e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e648604a8c0f6ce8e5aed3619d3a82872774ccd070ce622b70ea42b0bec9279e", kill_on_drop: false }` [INFO] [stdout] e648604a8c0f6ce8e5aed3619d3a82872774ccd070ce622b70ea42b0bec9279e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3a3c4f81eae0ce6b7c4ad064b31bd49a6d3993256f4f3ea3d61c9afb7693893 [INFO] running `Command { std: "docker" "start" "-a" "d3a3c4f81eae0ce6b7c4ad064b31bd49a6d3993256f4f3ea3d61c9afb7693893", kill_on_drop: false }` [INFO] [stderr] Compiling block-issue-sample v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `mock` [INFO] [stdout] --> src/starknet_utils/client/mod.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(any(test, feature = "mock"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `mock` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `mock` [INFO] [stdout] --> src/starknet_utils/client/mod.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | #[cfg_attr(any(test, feature = "mock"), automock)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `mock` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_hex_str` is never used [INFO] [stdout] --> src/starknet_utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn to_hex_str(value: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CairoU256` is never constructed [INFO] [stdout] --> src/starknet_utils.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CairoU256 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventResult` is never constructed [INFO] [stdout] --> src/starknet_utils.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct EventResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_biguint`, `to_hex`, `to_decimal`, and `from_hex_be` are never used [INFO] [stdout] --> src/starknet_utils.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CairoU256 { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 29 | pub fn to_biguint(&self) -> BigUint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn to_hex(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn to_decimal(&self, padded: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn from_hex_be(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_WORD_LEN` is never used [INFO] [stdout] --> src/starknet_utils/byte_array.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const MAX_WORD_LEN: usize = 31; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ByteArray` is never constructed [INFO] [stdout] --> src/starknet_utils/byte_array.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ByteArray { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string` and `to_string` are never used [INFO] [stdout] --> src/starknet_utils/byte_array.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl ByteArray { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn from_string(string: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn to_string(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `felt_to_utf8` is never used [INFO] [stdout] --> src/starknet_utils/byte_array.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn felt_to_utf8(felt: &FieldElement, len: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/starknet_utils/cairo_string_parser.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_cairo_string` is never used [INFO] [stdout] --> src/starknet_utils/cairo_string_parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn parse_cairo_string(field_elements: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Contract`, `EntrypointNotFound`, `InputTooLong`, `InputTooShort`, and `Conversion` are never constructed [INFO] [stdout] --> src/starknet_utils/client/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum StarknetClientError { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 13 | #[error("A contract error occurred: {0}")] [INFO] [stdout] 14 | Contract(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | #[error("Entry point not found: {0}")] [INFO] [stdout] 16 | EntrypointNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("Input too long for arguments")] [INFO] [stdout] 18 | InputTooLong, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | #[error("Input too short for arguments")] [INFO] [stdout] 20 | InputTooShort, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | #[error("Invalid value conversion: {0}")] [INFO] [stdout] 22 | Conversion(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StarknetClientError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/starknet_utils/client/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait StarknetClient { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 40 | async fn events_from_tx_receipt( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | async fn block_id_to_u64(&self, id: &BlockId) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn parse_block_range( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn parse_block_id(&self, id: &str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | async fn block_time(&self, block: BlockId) -> Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | async fn fetch_events( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn fetch_all_block_events( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | async fn call_contract( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INPUT_TOO_SHORT` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const INPUT_TOO_SHORT: &str = "0x496e70757420746f6f2073686f727420666f7220617267756d656e7473"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INPUT_TOO_LONG` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const INPUT_TOO_LONG: &str = "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FAILED_DESERIALIZE` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const FAILED_DESERIALIZE: &str = "0x4661696c656420746f20646573657269616c697a6520706172616d202331"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENTRYPOINT_NOT_FOUND` is never used [INFO] [stdout] --> src/starknet_utils/client/http.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const ENTRYPOINT_NOT_FOUND: &str = "not found in contract"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.11s [INFO] running `Command { std: "docker" "inspect" "d3a3c4f81eae0ce6b7c4ad064b31bd49a6d3993256f4f3ea3d61c9afb7693893", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3a3c4f81eae0ce6b7c4ad064b31bd49a6d3993256f4f3ea3d61c9afb7693893", kill_on_drop: false }` [INFO] [stdout] d3a3c4f81eae0ce6b7c4ad064b31bd49a6d3993256f4f3ea3d61c9afb7693893