[INFO] cloning repository https://github.com/EccoMoonProject/bank-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EccoMoonProject/bank-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEccoMoonProject%2Fbank-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEccoMoonProject%2Fbank-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e92f11521cd5d28d20373428dd28451cfd98c5c [INFO] building EccoMoonProject/bank-app against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEccoMoonProject%2Fbank-app" "/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/EccoMoonProject/bank-app [INFO] finished tweaking git repo https://github.com/EccoMoonProject/bank-app [INFO] tweaked toml for git repo https://github.com/EccoMoonProject/bank-app written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EccoMoonProject/bank-app on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/EccoMoonProject/bank-app 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e19bf0296b63143ce4668fb9e9e7655ba0ad787678dd487deb14168b95b76d5d [INFO] running `Command { std: "docker" "start" "-a" "e19bf0296b63143ce4668fb9e9e7655ba0ad787678dd487deb14168b95b76d5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e19bf0296b63143ce4668fb9e9e7655ba0ad787678dd487deb14168b95b76d5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e19bf0296b63143ce4668fb9e9e7655ba0ad787678dd487deb14168b95b76d5d", kill_on_drop: false }` [INFO] [stdout] e19bf0296b63143ce4668fb9e9e7655ba0ad787678dd487deb14168b95b76d5d [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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2dc2f995dee8e159056975609447e0ba699a4b6bf1044068ca2207efdbc4bbe6 [INFO] running `Command { std: "docker" "start" "-a" "2dc2f995dee8e159056975609447e0ba699a4b6bf1044068ca2207efdbc4bbe6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.143 [INFO] [stderr] Compiling serde v1.0.143 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling bytes v1.2.1 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling semver v1.0.13 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling fsio v0.3.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling rust_decimal v1.26.0 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling rustls v0.20.6 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling camino v1.0.9 [INFO] [stderr] Compiling pq-sys v0.4.7 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling globset v0.4.9 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling pin-project-internal v1.0.11 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Compiling structmeta-derive v0.1.5 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling chrono v0.2.25 [INFO] [stderr] Compiling pin-project v1.0.11 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling webpki-roots v0.22.4 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling wildmatch v2.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling nom v1.2.4 [INFO] [stderr] Compiling lazy_static v0.1.16 [INFO] [stderr] Compiling predicates-core v1.0.3 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling ftp v3.0.1 [INFO] [stderr] Compiling ignore v0.4.18 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling meval v0.2.0 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling prost-derive v0.8.0 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.6 [INFO] [stderr] Compiling tokio-util v0.7.3 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling attohttpc v0.19.1 [INFO] [stderr] Compiling structmeta v0.1.5 [INFO] [stderr] Compiling derive_builder_core v0.10.2 [INFO] [stderr] Compiling java-properties v1.4.1 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling nix v0.24.2 [INFO] [stderr] Compiling duckscript v0.7.3 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling uname v0.1.1 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling fs_extra v1.2.0 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.46 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling home v0.5.3 [INFO] [stderr] Compiling termtree v0.2.4 [INFO] [stderr] Compiling whoami v1.2.1 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling predicates v1.0.8 [INFO] [stderr] Compiling predicates-tree v1.0.5 [INFO] [stderr] Compiling chrono v0.4.22 [INFO] [stderr] Compiling ctrlc v3.2.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling derive_builder_macro v0.10.2 [INFO] [stderr] Compiling prost v0.8.0 [INFO] [stderr] Compiling parse-display-derive v0.5.5 [INFO] [stderr] Compiling rust_decimal_macros v1.26.0 [INFO] [stderr] Compiling tokio-stream v0.1.9 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling lenient_semver_version_builder v0.4.2 [INFO] [stderr] Compiling lenient_semver_parser v0.4.2 [INFO] [stderr] Compiling envmnt v0.10.0 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling lenient_semver v0.4.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling serde_ignored v0.1.5 [INFO] [stderr] Compiling ci_info v0.14.5 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling cargo_metadata v0.15.0 [INFO] [stderr] Compiling duckscriptsdk v0.8.13 [INFO] [stderr] Compiling tokio-util v0.6.10 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling mockall_derive v0.10.2 [INFO] [stderr] Compiling shell2batch v0.4.4 [INFO] [stderr] Compiling run_script v0.9.0 [INFO] [stderr] Compiling fern v0.6.1 [INFO] [stderr] Compiling downcast v0.10.0 [INFO] [stderr] Compiling git_info v0.1.2 [INFO] [stderr] Compiling cliparser v0.1.2 [INFO] [stderr] Compiling fragile v1.2.1 [INFO] [stderr] Compiling rust_info v0.3.2 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling rusty-money v0.4.1 [INFO] [stderr] Compiling cargo-make v0.35.15 [INFO] [stderr] Compiling parse-display v0.5.5 [INFO] [stderr] Compiling ulid v0.5.0 [INFO] [stderr] Compiling derive_builder v0.10.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling uuid v1.1.2 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling mockall v0.10.2 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling r2d2-diesel v1.0.0 [INFO] [stderr] Compiling tonic v0.5.2 [INFO] [stderr] Compiling rust-bank v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hash` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{fs, hash}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> src/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha512` [INFO] [stdout] --> src/auth.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use sha2::{Digest, Sha256, Sha512}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/auth.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/wallet.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/auth.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sha2::{Digest, Sha256, Sha512}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ten_millis` [INFO] [stdout] --> src/wallet.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let ten_millis = time::Duration::from_millis(100); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ten_millis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_Wallet` [INFO] [stdout] --> src/wallet.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 55 | let _user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 55 - let user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] 55 + let credits::_ = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut struct_hash: TxHash = serde_json::from_str(&data).expect("Unable to"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit_eur` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn deposit_eur(iso_standard: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_eur_data` is never used [INFO] [stdout] --> src/money.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn get_eur_data(amount: i64,name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idData` should have a snake case name [INFO] [stdout] --> src/wallet.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn add_wallet_data(idData: &String, depositData: &u128, currencyData: &String) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `id_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `depositData` should have a snake case name [INFO] [stdout] --> src/wallet.rs:13:48 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn add_wallet_data(idData: &String, depositData: &u128, currencyData: &String) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `deposit_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currencyData` should have a snake case name [INFO] [stdout] --> src/wallet.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn add_wallet_data(idData: &String, depositData: &u128, currencyData: &String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `currency_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | fs::write(path, updated_wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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] 46 | let _ = fs::write(path, updated_wallet); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/credits.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | fs::write("src/data/credits.json", serialized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = fs::write("src/data/credits.json", serialized); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | fs::write("./src/data/wallet.json", updated_wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = fs::write("./src/data/wallet.json", updated_wallet); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/auth.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | fs::write("./src/data/txhash.json", serialized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = fs::write("./src/data/txhash.json", serialized); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | fs::write(path, updated_wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = fs::write(path, updated_wallet); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | fs::write(path_credits, updated_credits); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 159 | let _ = fs::write(path_credits, updated_credits); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/wallet.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | fs::write("src/data/wallet.json", serialized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = fs::write("src/data/wallet.json", serialized); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `user_Wallet` should have a snake case name [INFO] [stdout] --> src/wallet.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `user_wallet` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 33s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: fs_extra v1.2.0, nom v1.2.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2dc2f995dee8e159056975609447e0ba699a4b6bf1044068ca2207efdbc4bbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2dc2f995dee8e159056975609447e0ba699a4b6bf1044068ca2207efdbc4bbe6", kill_on_drop: false }` [INFO] [stdout] 2dc2f995dee8e159056975609447e0ba699a4b6bf1044068ca2207efdbc4bbe6 [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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0dc01239b5fc2b20d13a9def7ea7a5bf0ecd1fd311b37bf852622dad5009c128 [INFO] running `Command { std: "docker" "start" "-a" "0dc01239b5fc2b20d13a9def7ea7a5bf0ecd1fd311b37bf852622dad5009c128", kill_on_drop: false }` [INFO] [stderr] Compiling rust-bank v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hash` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{fs, hash}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> src/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha512` [INFO] [stdout] --> src/auth.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use sha2::{Digest, Sha256, Sha512}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/auth.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/wallet.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/auth.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sha2::{Digest, Sha256, Sha512}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ten_millis` [INFO] [stdout] --> src/wallet.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let ten_millis = time::Duration::from_millis(100); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ten_millis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_Wallet` [INFO] [stdout] --> src/wallet.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 55 | let _user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 55 - let user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] 55 + let credits::_ = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut struct_hash: TxHash = serde_json::from_str(&data).expect("Unable to"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deposit_eur` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn deposit_eur(iso_standard: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_eur_data` is never used [INFO] [stdout] --> src/money.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn get_eur_data(amount: i64,name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idData` should have a snake case name [INFO] [stdout] --> src/wallet.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn add_wallet_data(idData: &String, depositData: &u128, currencyData: &String) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `id_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `depositData` should have a snake case name [INFO] [stdout] --> src/wallet.rs:13:48 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn add_wallet_data(idData: &String, depositData: &u128, currencyData: &String) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `deposit_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currencyData` should have a snake case name [INFO] [stdout] --> src/wallet.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) fn add_wallet_data(idData: &String, depositData: &u128, currencyData: &String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `currency_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | fs::write(path, updated_wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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] 46 | let _ = fs::write(path, updated_wallet); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/credits.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | fs::write("src/data/credits.json", serialized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = fs::write("src/data/credits.json", serialized); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/auth.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | fs::write("./src/data/txhash.json", serialized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = fs::write("./src/data/txhash.json", serialized); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | fs::write("./src/data/wallet.json", updated_wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = fs::write("./src/data/wallet.json", updated_wallet); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | fs::write(path, updated_wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = fs::write(path, updated_wallet); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | fs::write(path_credits, updated_credits); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 159 | let _ = fs::write(path_credits, updated_credits); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/wallet.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | fs::write("src/data/wallet.json", serialized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = fs::write("src/data/wallet.json", serialized); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `user_Wallet` should have a snake case name [INFO] [stdout] --> src/wallet.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let user_Wallet = add_wallet_data(&input_id, &trimmed, &input_currency); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `user_wallet` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.99s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: fs_extra v1.2.0, nom v1.2.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "0dc01239b5fc2b20d13a9def7ea7a5bf0ecd1fd311b37bf852622dad5009c128", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dc01239b5fc2b20d13a9def7ea7a5bf0ecd1fd311b37bf852622dad5009c128", kill_on_drop: false }` [INFO] [stdout] 0dc01239b5fc2b20d13a9def7ea7a5bf0ecd1fd311b37bf852622dad5009c128