[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] testing ArkProjectNFTs/block-issue-sample/fb0a5bea14f07e9d1051fbcaa096abe1e7be0eb5 against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759 [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 d98a5da813da67eb189387b8ccfb73cf481275d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bigdecimal v0.3.1 [INFO] [stderr] Downloaded starknet-signers v0.8.0 [INFO] [stderr] Downloaded starknet-core v0.10.0 [INFO] [stderr] Downloaded starknet-ff v0.3.7 [INFO] [stderr] Downloaded starknet-crypto v0.6.2 [INFO] [stderr] Downloaded starknet-contract v0.9.0 [INFO] [stderr] Downloaded starknet-providers v0.10.0 [INFO] [stderr] Downloaded predicates v3.1.0 [INFO] [stderr] Downloaded starknet-accounts v0.9.0 [INFO] [stderr] Downloaded mockall_derive v0.12.1 [INFO] [stderr] Downloaded parity-scale-codec v3.6.9 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.6.9 [INFO] [stderr] Downloaded toml_edit v0.20.2 [INFO] [stderr] Downloaded mockall v0.12.1 [INFO] [stderr] Downloaded serde_json_pythonic v0.1.2 [INFO] [stderr] Downloaded starknet-crypto-codegen v0.3.3 [INFO] [stderr] Downloaded starknet v0.10.0 [INFO] [stderr] Downloaded starknet-macros v0.1.7 [INFO] [stderr] Downloaded proc-macro-crate v2.0.2 [INFO] [stderr] Downloaded starknet-curve v0.4.2 [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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea51ecce95f27820282c8748f88caff99119cb61426b3d831ff12521e98e1951 [INFO] running `Command { std: "docker" "start" "-a" "ea51ecce95f27820282c8748f88caff99119cb61426b3d831ff12521e98e1951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea51ecce95f27820282c8748f88caff99119cb61426b3d831ff12521e98e1951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea51ecce95f27820282c8748f88caff99119cb61426b3d831ff12521e98e1951", kill_on_drop: false }` [INFO] [stdout] ea51ecce95f27820282c8748f88caff99119cb61426b3d831ff12521e98e1951 [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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d29615eb522ea9582a4d72ddb75c776fe1dc1fa667dcb303c2c49c3bd34426b9 [INFO] running `Command { std: "docker" "start" "-a" "d29615eb522ea9582a4d72ddb75c776fe1dc1fa667dcb303c2c49c3bd34426b9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling serde_json_pythonic v0.1.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling ark-std v0.4.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling httparse v1.8.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 unicode-bidi v0.3.15 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling scrypt v0.10.0 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling idna v0.5.0 [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 ark-serialize v0.4.2 [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 predicates-tree v1.0.9 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling darling_macro v0.20.8 [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 darling v0.20.8 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling ark-ff v0.4.2 [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 mockall v0.12.1 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling serde_with v2.3.3 [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 hyper v0.14.28 [INFO] [stderr] Compiling ethereum-types v0.14.1 [INFO] [stderr] Compiling starknet-ff v0.3.7 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [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 starknet-core v0.10.0 [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)]` 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 9m 32s [INFO] running `Command { std: "docker" "inspect" "d29615eb522ea9582a4d72ddb75c776fe1dc1fa667dcb303c2c49c3bd34426b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d29615eb522ea9582a4d72ddb75c776fe1dc1fa667dcb303c2c49c3bd34426b9", kill_on_drop: false }` [INFO] [stdout] d29615eb522ea9582a4d72ddb75c776fe1dc1fa667dcb303c2c49c3bd34426b9 [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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3e0b20c6c2c84ed1c04e2c8dc40dee2f65902dc8e092b1ecf09ce5e0f5eb476 [INFO] running `Command { std: "docker" "start" "-a" "b3e0b20c6c2c84ed1c04e2c8dc40dee2f65902dc8e092b1ecf09ce5e0f5eb476", 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)]` 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: fields `events` and `continuation_token` are never read [INFO] [stdout] --> src/starknet_utils.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct EventResult { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 24 | pub events: HashMap>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | pub continuation_token: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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 3.12s [INFO] running `Command { std: "docker" "inspect" "b3e0b20c6c2c84ed1c04e2c8dc40dee2f65902dc8e092b1ecf09ce5e0f5eb476", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3e0b20c6c2c84ed1c04e2c8dc40dee2f65902dc8e092b1ecf09ce5e0f5eb476", kill_on_drop: false }` [INFO] [stdout] b3e0b20c6c2c84ed1c04e2c8dc40dee2f65902dc8e092b1ecf09ce5e0f5eb476 [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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e06239fb43ea0801759b9ac831d75f66e03e084aba2d7f402e13eb300eb8d80c [INFO] running `Command { std: "docker" "start" "-a" "e06239fb43ea0801759b9ac831d75f66e03e084aba2d7f402e13eb300eb8d80c", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `mock` [INFO] [stderr] --> src/starknet_utils/client/mod.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | #[cfg(any(test, feature = "mock"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `mock` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `mock` [INFO] [stderr] --> src/starknet_utils/client/mod.rs:31:22 [INFO] [stderr] | [INFO] [stderr] 31 | #[cfg_attr(any(test, feature = "mock"), automock)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `mock` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: function `to_hex_str` is never used [INFO] [stderr] --> src/starknet_utils.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn to_hex_str(value: &T) -> String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `CairoU256` is never constructed [INFO] [stderr] --> src/starknet_utils.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct CairoU256 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `events` and `continuation_token` are never read [INFO] [stderr] --> src/starknet_utils.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct EventResult { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 24 | pub events: HashMap>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 25 | pub continuation_token: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EventResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `to_biguint`, `to_hex`, `to_decimal`, and `from_hex_be` are never used [INFO] [stderr] --> src/starknet_utils.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 28 | impl CairoU256 { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 29 | pub fn to_biguint(&self) -> BigUint { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn to_hex(&self) -> String { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn to_decimal(&self, padded: bool) -> String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | pub fn from_hex_be(value: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MAX_WORD_LEN` is never used [INFO] [stderr] --> src/starknet_utils/byte_array.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | const MAX_WORD_LEN: usize = 31; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ByteArray` is never constructed [INFO] [stderr] --> src/starknet_utils/byte_array.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct ByteArray { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `from_string` and `to_string` are never used [INFO] [stderr] --> src/starknet_utils/byte_array.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl ByteArray { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn from_string(string: &str) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 76 | pub fn to_string(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `felt_to_utf8` is never used [INFO] [stderr] --> src/starknet_utils/byte_array.rs:102:4 [INFO] [stderr] | [INFO] [stderr] 102 | fn felt_to_utf8(felt: &FieldElement, len: usize) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ParseError` is never used [INFO] [stderr] --> src/starknet_utils/cairo_string_parser.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | pub enum ParseError { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_cairo_string` is never used [INFO] [stderr] --> src/starknet_utils/cairo_string_parser.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn parse_cairo_string(field_elements: Vec) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Contract`, `EntrypointNotFound`, `InputTooLong`, `InputTooShort`, and `Conversion` are never constructed [INFO] [stderr] --> src/starknet_utils/client/mod.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 12 | pub enum StarknetClientError { [INFO] [stderr] | ------------------- variants in this enum [INFO] [stderr] 13 | #[error("A contract error occurred: {0}")] [INFO] [stderr] 14 | Contract(String), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 15 | #[error("Entry point not found: {0}")] [INFO] [stderr] 16 | EntrypointNotFound(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 17 | #[error("Input too long for arguments")] [INFO] [stderr] 18 | InputTooLong, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 19 | #[error("Input too short for arguments")] [INFO] [stderr] 20 | InputTooShort, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 21 | #[error("Invalid value conversion: {0}")] [INFO] [stderr] 22 | Conversion(String), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `StarknetClientError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/starknet_utils/client/mod.rs:40:14 [INFO] [stderr] | [INFO] [stderr] 33 | pub trait StarknetClient { [INFO] [stderr] | -------------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 40 | async fn events_from_tx_receipt( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | async fn block_id_to_u64(&self, id: &BlockId) -> Result; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | fn parse_block_range( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | fn parse_block_id(&self, id: &str) -> Result; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 66 | async fn block_time(&self, block: BlockId) -> Result; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 80 | async fn fetch_events( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 89 | async fn fetch_all_block_events( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 97 | async fn call_contract( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `INPUT_TOO_SHORT` is never used [INFO] [stderr] --> src/starknet_utils/client/http.rs:14:7 [INFO] [stderr] | [INFO] [stderr] 14 | const INPUT_TOO_SHORT: &str = "0x496e70757420746f6f2073686f727420666f7220617267756d656e7473"; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `INPUT_TOO_LONG` is never used [INFO] [stderr] --> src/starknet_utils/client/http.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | const INPUT_TOO_LONG: &str = "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473"; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `FAILED_DESERIALIZE` is never used [INFO] [stderr] --> src/starknet_utils/client/http.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const FAILED_DESERIALIZE: &str = "0x4661696c656420746f20646573657269616c697a6520706172616d202331"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ENTRYPOINT_NOT_FOUND` is never used [INFO] [stderr] --> src/starknet_utils/client/http.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | const ENTRYPOINT_NOT_FOUND: &str = "not found in contract"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `block-issue-sample` (bin "block-issue-sample" test) generated 18 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/block_issue_sample-10284294890eaa8d) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e06239fb43ea0801759b9ac831d75f66e03e084aba2d7f402e13eb300eb8d80c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e06239fb43ea0801759b9ac831d75f66e03e084aba2d7f402e13eb300eb8d80c", kill_on_drop: false }` [INFO] [stdout] e06239fb43ea0801759b9ac831d75f66e03e084aba2d7f402e13eb300eb8d80c