[INFO] cloning repository https://github.com/VibhavSurve09/expense_tracker_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VibhavSurve09/expense_tracker_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVibhavSurve09%2Fexpense_tracker_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVibhavSurve09%2Fexpense_tracker_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 58f6121d595c1d64c5782a8c3753cd38bfdcfd31 [INFO] testing VibhavSurve09/expense_tracker_api/58f6121d595c1d64c5782a8c3753cd38bfdcfd31 against 1.81.0 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVibhavSurve09%2Fexpense_tracker_api" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VibhavSurve09/expense_tracker_api on toolchain 1.81.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.81.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VibhavSurve09/expense_tracker_api [INFO] finished tweaking git repo https://github.com/VibhavSurve09/expense_tracker_api [INFO] tweaked toml for git repo https://github.com/VibhavSurve09/expense_tracker_api written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/VibhavSurve09/expense_tracker_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" "+1.81.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-pg-mapper-derive v0.2.0 [INFO] [stderr] Downloaded deadpool-postgres v0.10.2 [INFO] [stderr] Downloaded actix-cors v0.6.1 [INFO] [stderr] Downloaded redis v0.19.0 [INFO] [stderr] Downloaded actix-http v3.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a2b619cc4c82fe1871fa433903477ef566450b81f2c08eaf3d45aa75271a837 [INFO] running `Command { std: "docker" "start" "-a" "4a2b619cc4c82fe1871fa433903477ef566450b81f2c08eaf3d45aa75271a837", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a2b619cc4c82fe1871fa433903477ef566450b81f2c08eaf3d45aa75271a837", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a2b619cc4c82fe1871fa433903477ef566450b81f2c08eaf3d45aa75271a837", kill_on_drop: false }` [INFO] [stdout] 4a2b619cc4c82fe1871fa433903477ef566450b81f2c08eaf3d45aa75271a837 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74352be449926e47d66e598296ef73f5bcb4e7c292dec0911e6b574d9f4c22e4 [INFO] running `Command { std: "docker" "start" "-a" "74352be449926e47d66e598296ef73f5bcb4e7c292dec0911e6b574d9f4c22e4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling mio v0.8.3 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling tracing-core v0.1.27 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tokio v1.19.2 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing v0.1.35 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling zstd-sys v2.0.1+zstd.1.5.2 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling bytestring v1.1.0 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling local-waker v0.1.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling tokio-util v0.7.3 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling firestorm v0.5.1 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling actix-rt v2.7.0 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling postgres-protocol v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling postgres-types v0.2.3 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-router v0.5.0 [INFO] [stderr] Compiling local-channel v0.1.3 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling time v0.3.9 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling actix-codec v0.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling dlv-list v0.3.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling ordered-multimap v0.4.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling actix-web-codegen v4.0.1 [INFO] [stderr] Compiling tokio-postgres v0.7.6 [INFO] [stderr] Compiling actix-server v2.1.1 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling deadpool-runtime v0.1.2 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling retain_mut v0.1.9 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling deadpool v0.9.5 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling rust-ini v0.18.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling ron v0.7.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling combine v4.6.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling pathdiff v0.2.1 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling deadpool-postgres v0.10.2 [INFO] [stderr] Compiling tokio-pg-mapper v0.2.0 [INFO] [stderr] Compiling config v0.13.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling tokio-pg-mapper-derive v0.2.0 [INFO] [stderr] Compiling redis v0.19.0 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling actix-http v3.1.0 [INFO] [stderr] Compiling actix-web v4.1.0 [INFO] [stderr] Compiling actix-cors v0.6.1 [INFO] [stderr] Compiling expense_tracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `http` [INFO] [stdout] --> src/main.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, http, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Manager` and `Pool` [INFO] [stdout] --> src/main.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use deadpool_postgres::{Manager, Pool, Runtime}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/config.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/controllers/credit.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Credit, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/controllers/credit.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/controllers/credit.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | match (cookie) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - match (cookie) { [INFO] [stdout] 61 + match cookie { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/controllers/debit.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Debit, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/controllers/debit.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/controllers/debit.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | match (cookie) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - match (cookie) { [INFO] [stdout] 61 + match cookie { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::http::header` [INFO] [stdout] --> src/controllers/users.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::http::header; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/controllers/users.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{cookie::Cookie, get, http, post, web, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cookie::Cookie` [INFO] [stdout] --> src/database/users.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{cookie::Cookie, web}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::Commands` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use redis::Commands; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/database/credit.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | client.query(&stmt, &[&debit_id, &tid]).await; [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 53 | let _ = client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/database/debit.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | client.query(&stmt, &[&debit_id, &tid]).await; [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] 54 | let _ = client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/database/users.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | client.query(&statement, &[&email.email, &tid]).await; [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] 65 | let _ = client.query(&statement, &[&email.email, &tid]).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.19.0 [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" "74352be449926e47d66e598296ef73f5bcb4e7c292dec0911e6b574d9f4c22e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74352be449926e47d66e598296ef73f5bcb4e7c292dec0911e6b574d9f4c22e4", kill_on_drop: false }` [INFO] [stdout] 74352be449926e47d66e598296ef73f5bcb4e7c292dec0911e6b574d9f4c22e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2540e03894c28fa313a47430a650da8a1b9cfd5d92c7d2dc87a54c31e90e1eea [INFO] running `Command { std: "docker" "start" "-a" "2540e03894c28fa313a47430a650da8a1b9cfd5d92c7d2dc87a54c31e90e1eea", kill_on_drop: false }` [INFO] [stderr] Compiling expense_tracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `http` [INFO] [stdout] --> src/main.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, http, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Manager` and `Pool` [INFO] [stdout] --> src/main.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use deadpool_postgres::{Manager, Pool, Runtime}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/config.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/controllers/credit.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Credit, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/controllers/credit.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/controllers/credit.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | match (cookie) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - match (cookie) { [INFO] [stdout] 61 + match cookie { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/controllers/debit.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Debit, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/controllers/debit.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/controllers/debit.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | match (cookie) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - match (cookie) { [INFO] [stdout] 61 + match cookie { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::http::header` [INFO] [stdout] --> src/controllers/users.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::http::header; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/controllers/users.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{cookie::Cookie, get, http, post, web, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cookie::Cookie` [INFO] [stdout] --> src/database/users.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{cookie::Cookie, web}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::Commands` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use redis::Commands; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/database/credit.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | client.query(&stmt, &[&debit_id, &tid]).await; [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 53 | let _ = client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/database/debit.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | client.query(&stmt, &[&debit_id, &tid]).await; [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] 54 | let _ = client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/database/users.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | client.query(&statement, &[&email.email, &tid]).await; [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] 65 | let _ = client.query(&statement, &[&email.email, &tid]).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.71s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.19.0 [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" "2540e03894c28fa313a47430a650da8a1b9cfd5d92c7d2dc87a54c31e90e1eea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2540e03894c28fa313a47430a650da8a1b9cfd5d92c7d2dc87a54c31e90e1eea", kill_on_drop: false }` [INFO] [stdout] 2540e03894c28fa313a47430a650da8a1b9cfd5d92c7d2dc87a54c31e90e1eea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+1.81.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8cb5fb6ecec0c3fa2d30e815ed93851fb47091826d2631232a73cafb61dee68f [INFO] running `Command { std: "docker" "start" "-a" "8cb5fb6ecec0c3fa2d30e815ed93851fb47091826d2631232a73cafb61dee68f", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `http` [INFO] [stderr] --> src/main.rs:2:22 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::{get, http, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Manager` and `Pool` [INFO] [stderr] --> src/main.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use deadpool_postgres::{Manager, Pool, Runtime}; [INFO] [stderr] | ^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/config.rs:3:26 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `User` [INFO] [stderr] --> src/controllers/credit.rs:1:29 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::models::{Credit, User}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::prelude::*` [INFO] [stderr] --> src/controllers/credit.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/controllers/credit.rs:61:11 [INFO] [stderr] | [INFO] [stderr] 61 | match (cookie) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 61 - match (cookie) { [INFO] [stderr] 61 + match cookie { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `User` [INFO] [stderr] --> src/controllers/debit.rs:1:28 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::models::{Debit, User}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::prelude::*` [INFO] [stderr] --> src/controllers/debit.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/controllers/debit.rs:61:11 [INFO] [stderr] | [INFO] [stderr] 61 | match (cookie) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 61 - match (cookie) { [INFO] [stderr] 61 + match cookie { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_web::http::header` [INFO] [stderr] --> src/controllers/users.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::http::header; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get` [INFO] [stderr] --> src/controllers/users.rs:3:33 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{cookie::Cookie, get, http, post, web, HttpRequest, HttpResponse, Responder}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cookie::Cookie` [INFO] [stderr] --> src/database/users.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{cookie::Cookie, web}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `redis::Commands` [INFO] [stderr] --> src/main.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use redis::Commands; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/database/credit.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 53 | let _ = client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/database/debit.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 54 | let _ = client.query(&stmt, &[&debit_id, &tid]).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/database/users.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 65 | client.query(&statement, &[&email.email, &tid]).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 65 | let _ = client.query(&statement, &[&email.email, &tid]).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `expense_tracker` (bin "expense_tracker" test) generated 16 warnings (run `cargo fix --bin "expense_tracker" --tests` to apply 13 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.19.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/expense_tracker-f60381a363aff426) [INFO] [stdout] [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" "8cb5fb6ecec0c3fa2d30e815ed93851fb47091826d2631232a73cafb61dee68f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cb5fb6ecec0c3fa2d30e815ed93851fb47091826d2631232a73cafb61dee68f", kill_on_drop: false }` [INFO] [stdout] 8cb5fb6ecec0c3fa2d30e815ed93851fb47091826d2631232a73cafb61dee68f