[INFO] cloning repository https://github.com/saint0x/rust-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saint0x/rust-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaint0x%2Frust-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaint0x%2Frust-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 550777eea31024d81727223c7e76579a020f121f [INFO] checking saint0x/rust-api against try#3298c2ca5e390fd0d104357fdeec514a152a9561 for pr-136490 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaint0x%2Frust-api" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/saint0x/rust-api on toolchain 3298c2ca5e390fd0d104357fdeec514a152a9561 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/saint0x/rust-api [INFO] finished tweaking git repo https://github.com/saint0x/rust-api [INFO] tweaked toml for git repo https://github.com/saint0x/rust-api written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/saint0x/rust-api 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" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded secp256k1 v0.18.0 [INFO] [stderr] Downloaded ethabi v16.0.0 [INFO] [stderr] Downloaded secp256k1-sys v0.2.0 [INFO] [stderr] Downloaded web3 v0.18.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc13cb70b2c32abb96533261c549703c4fe74f6db0af02731341a4d3b9c7f60f [INFO] running `Command { std: "docker" "start" "-a" "cc13cb70b2c32abb96533261c549703c4fe74f6db0af02731341a4d3b9c7f60f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc13cb70b2c32abb96533261c549703c4fe74f6db0af02731341a4d3b9c7f60f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc13cb70b2c32abb96533261c549703c4fe74f6db0af02731341a4d3b9c7f60f", kill_on_drop: false }` [INFO] [stdout] cc13cb70b2c32abb96533261c549703c4fe74f6db0af02731341a4d3b9c7f60f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fba1368aa021381eb212ef7b6d49a3f896a355efefa68ad394b2a3a3fac1c4a [INFO] running `Command { std: "docker" "start" "-a" "6fba1368aa021381eb212ef7b6d49a3f896a355efefa68ad394b2a3a3fac1c4a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking bitvec v0.20.4 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling secp256k1-sys v0.2.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking secp256k1 v0.18.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking secp256k1 v0.21.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking webpki v0.22.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking soketto v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking web3-async-native-tls v0.4.0 [INFO] [stderr] Checking parity-scale-codec v2.3.1 [INFO] [stderr] Checking impl-serde v0.3.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ethbloom v0.11.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking impl-codec v0.5.1 [INFO] [stderr] Checking primitive-types v0.10.1 [INFO] [stderr] Checking jsonrpc-core v18.0.0 [INFO] [stderr] Checking ethereum-types v0.12.1 [INFO] [stderr] Checking ethabi v16.0.0 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking web3 v0.18.0 [INFO] [stderr] Checking rust_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::smart_contract` [INFO] [stdout] --> src/block.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::smart_contract::SmartContract; [INFO] [stdout] | ^^^^^^^^^^^^^^ could not find `smart_contract` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `secp256k1::sign`, `secp256k1::verify` [INFO] [stdout] --> src/crypto.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use secp256k1::{SecretKey, Message, sign, verify}; [INFO] [stdout] | ^^^^ ^^^^^^ no `verify` in the root [INFO] [stdout] | | [INFO] [stdout] | no `sign` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this module instead: [INFO] [stdout] rustls::sign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `block::Block` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use block::Block; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::smart_contract` [INFO] [stdout] --> src/block.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::smart_contract::SmartContract; [INFO] [stdout] | ^^^^^^^^^^^^^^ could not find `smart_contract` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `secp256k1::sign`, `secp256k1::verify` [INFO] [stdout] --> src/crypto.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use secp256k1::{SecretKey, Message, sign, verify}; [INFO] [stdout] | ^^^^ ^^^^^^ no `verify` in the root [INFO] [stdout] | | [INFO] [stdout] | no `sign` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this module instead: [INFO] [stdout] rustls::sign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied [INFO] [stdout] --> src/block.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | let json_tx = serde_json::to_string(tx)?; [INFO] [stdout] | --------------------- ^^ the trait `Serialize` is not implemented for `Transaction` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 232 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `block::Block` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use block::Block; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied [INFO] [stdout] --> src/block.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | let json_tx = serde_json::to_string(tx)?; [INFO] [stdout] | --------------------- ^^ the trait `Serialize` is not implemented for `Transaction` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 232 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_blockchain` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied [INFO] [stdout] --> src/block.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | let json_tx = serde_json::to_string(tx)?; [INFO] [stdout] | --------------------- ^^ the trait `Serialize` is not implemented for `Transaction` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 232 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied [INFO] [stdout] --> src/block.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | let json_tx = serde_json::to_string(tx)?; [INFO] [stdout] | --------------------- ^^ the trait `Serialize` is not implemented for `Transaction` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 232 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17 [INFO] [stdout] | [INFO] [stdout] 2207 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2208 | where [INFO] [stdout] 2209 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `amount` on type `&Transaction` [INFO] [stdout] --> src/smart_contract.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | transaction.amount > 0.0 [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 10 | transaction.data.amount > 0.0 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Blockchain` [INFO] [stdout] --> src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | let mut blockchain = Blockchain::new(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `amount` on type `&Transaction` [INFO] [stdout] --> src/smart_contract.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | transaction.amount > 0.0 [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 10 | transaction.data.amount > 0.0 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_blockchain` (lib test) due to 3 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Blockchain` [INFO] [stdout] --> src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | let mut blockchain = Blockchain::new(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_status` [INFO] [stdout] --> src/smart_contract.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn update_contract_status(new_status: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_status` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_name` [INFO] [stdout] --> src/smart_contract.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn extract_requirements(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *co... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_email` [INFO] [stdout] --> src/smart_contract.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | ...nts(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payment_amount` [INFO] [stdout] --> src/smart_contract.rs:31:72 [INFO] [stdout] | [INFO] [stdout] 31 | ... client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payment_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requirements` [INFO] [stdout] --> src/smart_contract.rs:31:93 [INFO] [stdout] | [INFO] [stdout] 31 | ..., payment_amount: f64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requirements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/smart_contract.rs:31:113 [INFO] [stdout] | [INFO] [stdout] 31 | ...64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_input` [INFO] [stdout] --> src/smart_contract.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn generate_smart_contract(user_input: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract_code` [INFO] [stdout] --> src/smart_contract.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/smart_contract.rs:43:59 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_blockchain` (bin "rust_blockchain") due to 3 previous errors; 10 warnings emitted [INFO] [stdout] warning: unused variable: `new_status` [INFO] [stdout] --> src/smart_contract.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn update_contract_status(new_status: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_status` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_name` [INFO] [stdout] --> src/smart_contract.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn extract_requirements(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *co... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_email` [INFO] [stdout] --> src/smart_contract.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | ...nts(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payment_amount` [INFO] [stdout] --> src/smart_contract.rs:31:72 [INFO] [stdout] | [INFO] [stdout] 31 | ... client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payment_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requirements` [INFO] [stdout] --> src/smart_contract.rs:31:93 [INFO] [stdout] | [INFO] [stdout] 31 | ..., payment_amount: f64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requirements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/smart_contract.rs:31:113 [INFO] [stdout] | [INFO] [stdout] 31 | ...64, requirements: &str, description: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_input` [INFO] [stdout] --> src/smart_contract.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn generate_smart_contract(user_input: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract_code` [INFO] [stdout] --> src/smart_contract.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/smart_contract.rs:43:59 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_blockchain` (bin "rust_blockchain" test) due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6fba1368aa021381eb212ef7b6d49a3f896a355efefa68ad394b2a3a3fac1c4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fba1368aa021381eb212ef7b6d49a3f896a355efefa68ad394b2a3a3fac1c4a", kill_on_drop: false }` [INFO] [stdout] 6fba1368aa021381eb212ef7b6d49a3f896a355efefa68ad394b2a3a3fac1c4a