[INFO] cloning repository https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTr4nMorDev%2FBasic-Smart-Contract-Architecture", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTr4nMorDev%2FBasic-Smart-Contract-Architecture'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b46376ddb80576b81ad56ee51839ddc6e3b6a56d [INFO] checking Tr4nMorDev/Basic-Smart-Contract-Architecture against try#2278ef25f90817c20d6dd0d2da58a990eb6f53cb for pr-145108-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTr4nMorDev%2FBasic-Smart-Contract-Architecture" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture [INFO] finished tweaking git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture [INFO] tweaked toml for git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture on toolchain 2278ef25f90817c20d6dd0d2da58a990eb6f53cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture 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" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking Tr4nMorDev/Basic-Smart-Contract-Architecture against try#2278ef25f90817c20d6dd0d2da58a990eb6f53cb for pr-145108-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTr4nMorDev%2FBasic-Smart-Contract-Architecture" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture [INFO] finished tweaking git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture [INFO] tweaked toml for git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture on toolchain 2278ef25f90817c20d6dd0d2da58a990eb6f53cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tr4nMorDev/Basic-Smart-Contract-Architecture 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" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22ff4daf93e710e44edd78b3594c144edab4c51c7f18dda7064a49fdf2ed1937 [INFO] running `Command { std: "docker" "start" "-a" "22ff4daf93e710e44edd78b3594c144edab4c51c7f18dda7064a49fdf2ed1937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22ff4daf93e710e44edd78b3594c144edab4c51c7f18dda7064a49fdf2ed1937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22ff4daf93e710e44edd78b3594c144edab4c51c7f18dda7064a49fdf2ed1937", kill_on_drop: false }` [INFO] [stdout] 22ff4daf93e710e44edd78b3594c144edab4c51c7f18dda7064a49fdf2ed1937 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc6003997296b61ab57d31d2c194556d74d62b999c60810e039d8b9054319318 [INFO] running `Command { std: "docker" "start" "-a" "cc6003997296b61ab57d31d2c194556d74d62b999c60810e039d8b9054319318", kill_on_drop: false }` [INFO] [stderr] Checking Quanli_SmartConstract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | for (i,a) in self.transactions.iter().enumerate(){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | for (i,a) in self.transactions.iter().enumerate(){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `frozen_Contract` and `check_contract_status_Frozen` are never used [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | fn frozen_Contract(&mut self , id : &u32 ) -> Result<() , String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn check_contract_status_Frozen(&mut self , id : &u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `frozen_Contract` and `check_contract_status_Frozen` are never used [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | fn frozen_Contract(&mut self , id : &u32 ) -> Result<() , String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn check_contract_status_Frozen(&mut self , id : &u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `name` are never read [INFO] [stdout] --> src/contract.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Contract { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 4 | pub id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | pub name : String , [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Contract` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Terminated` is never constructed [INFO] [stdout] --> src/contract.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ContractStatus { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Terminated [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `name` are never read [INFO] [stdout] --> src/contract.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Contract { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 4 | pub id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | pub name : String , [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Contract` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Terminated` is never constructed [INFO] [stdout] --> src/contract.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ContractStatus { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Terminated [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `from_id`, `to_id`, `amount`, `status`, and `time_excute` are never read [INFO] [stdout] --> src/transaction.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 4 | pub id : u32 , [INFO] [stdout] | ^^ [INFO] [stdout] 5 | pub from_id : u32 , [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | pub to_id : u32 , [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub amount : u128 , [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub status : TransactionStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub time_excute : u64 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending` and `Failed` are never constructed [INFO] [stdout] --> src/transaction.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TransactionStatus { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 13 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | Completed, [INFO] [stdout] 15 | Failed [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `from_id`, `to_id`, `amount`, `status`, and `time_excute` are never read [INFO] [stdout] --> src/transaction.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 4 | pub id : u32 , [INFO] [stdout] | ^^ [INFO] [stdout] 5 | pub from_id : u32 , [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | pub to_id : u32 , [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub amount : u128 , [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub status : TransactionStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub time_excute : u64 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TransactionAction` is never used [INFO] [stdout] --> src/transaction.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait TransactionAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending` and `Failed` are never constructed [INFO] [stdout] --> src/transaction.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TransactionStatus { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 13 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | Completed, [INFO] [stdout] 15 | Failed [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `frozen_Contract` should have a snake case name [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn frozen_Contract(&mut self , id : &u32 ) -> Result<() , String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `frozen_contract` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TransactionAction` is never used [INFO] [stdout] --> src/transaction.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait TransactionAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/main.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | c.status == ContractStatus::Frozen; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = c.status == ContractStatus::Frozen; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `frozen_Contract` should have a snake case name [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn frozen_Contract(&mut self , id : &u32 ) -> Result<() , String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `frozen_contract` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/main.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | c.status == ContractStatus::Frozen; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = c.status == ContractStatus::Frozen; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_contract_status_Active` should have a snake case name [INFO] [stdout] --> src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn check_contract_status_Active(&mut self , id : &u32 ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_contract_status_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_contract_status_Frozen` should have a snake case name [INFO] [stdout] --> src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn check_contract_status_Frozen(&mut self , id : &u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `check_contract_status_frozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_contract_status_Active` should have a snake case name [INFO] [stdout] --> src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn check_contract_status_Active(&mut self , id : &u32 ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_contract_status_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_contract_status_Frozen` should have a snake case name [INFO] [stdout] --> src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn check_contract_status_Frozen(&mut self , id : &u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `check_contract_status_frozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "cc6003997296b61ab57d31d2c194556d74d62b999c60810e039d8b9054319318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc6003997296b61ab57d31d2c194556d74d62b999c60810e039d8b9054319318", kill_on_drop: false }` [INFO] [stdout] cc6003997296b61ab57d31d2c194556d74d62b999c60810e039d8b9054319318