[INFO] cloning repository https://github.com/uzzol101/rest_v1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uzzol101/rest_v1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuzzol101%2Frest_v1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuzzol101%2Frest_v1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 85b0969e67ec2fffa4d9376ee607e3ae6da7642c [INFO] testing uzzol101/rest_v1 against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuzzol101%2Frest_v1" "/workspace/builds/worker-18/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-18/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uzzol101/rest_v1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uzzol101/rest_v1 [INFO] finished tweaking git repo https://github.com/uzzol101/rest_v1 [INFO] tweaked toml for git repo https://github.com/uzzol101/rest_v1 written to /workspace/builds/worker-18/source/Cargo.toml [INFO] crate git repo https://github.com/uzzol101/rest_v1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded enum-as-inner v0.3.1 [INFO] [stderr] Downloaded async-trait v0.1.24 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.3 [INFO] [stderr] Downloaded rust-argon2 v0.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f1fd691fb7b817bdca4152164e8276aa5f3109b526db481ee23cfb8d18c5299 [INFO] running `Command { std: "docker" "start" "-a" "3f1fd691fb7b817bdca4152164e8276aa5f3109b526db481ee23cfb8d18c5299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f1fd691fb7b817bdca4152164e8276aa5f3109b526db481ee23cfb8d18c5299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f1fd691fb7b817bdca4152164e8276aa5f3109b526db481ee23cfb8d18c5299", kill_on_drop: false }` [INFO] [stdout] 3f1fd691fb7b817bdca4152164e8276aa5f3109b526db481ee23cfb8d18c5299 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2ba34890632f1a6a52778578aa5b36652a6e8b3fad579ce9b52c28bb59a7c3d [INFO] running `Command { std: "docker" "start" "-a" "a2ba34890632f1a6a52778578aa5b36652a6e8b3fad579ce9b52c28bb59a7c3d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling syn v1.0.15 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling futures-core v0.3.4 [INFO] [stderr] Compiling smallvec v1.2.0 [INFO] [stderr] Compiling futures-sink v0.3.4 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling futures-task v0.3.4 [INFO] [stderr] Compiling arc-swap v0.4.4 [INFO] [stderr] Compiling futures-io v0.3.4 [INFO] [stderr] Compiling pin-project-lite v0.1.4 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling copyless v0.1.4 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling linked-hash-map v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.14 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Compiling dtoa v0.4.5 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling arrayvec v0.5.1 [INFO] [stderr] Compiling lock_api v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.12 [INFO] [stderr] Compiling futures-channel v0.3.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling blake2b_simd v0.5.10 [INFO] [stderr] Compiling http v0.2.0 [INFO] [stderr] Compiling bytestring v0.1.4 [INFO] [stderr] Compiling miniz_oxide v0.3.6 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling aho-corasick v0.7.8 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.7.0 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling socket2 v0.3.11 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling flate2 v1.0.13 [INFO] [stderr] Compiling resolv-conf v0.6.2 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling threadpool v1.7.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.10.0 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling r2d2 v0.8.8 [INFO] [stderr] Compiling tokio v0.2.11 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling rust-argon2 v0.8.1 [INFO] [stderr] Compiling regex v1.3.4 [INFO] [stderr] Compiling backtrace v0.3.44 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling derive_more v0.99.3 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling actix-macros v0.1.1 [INFO] [stderr] Compiling enum-as-inner v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.24 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix-web-codegen v0.2.0 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling pin-project v0.4.8 [INFO] [stderr] Compiling futures-util v0.3.4 [INFO] [stderr] Compiling actix-threadpool v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.4 [INFO] [stderr] Compiling actix-service v1.0.5 [INFO] [stderr] Compiling h2 v0.2.1 [INFO] [stderr] Compiling futures v0.3.4 [INFO] [stderr] Compiling actix-rt v1.0.0 [INFO] [stderr] Compiling trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-utils v1.0.6 [INFO] [stderr] Compiling actix-server v1.0.1 [INFO] [stderr] Compiling actix-tls v1.0.0 [INFO] [stderr] Compiling actix-testing v1.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling actix-router v0.2.4 [INFO] [stderr] Compiling actix-connect v1.0.2 [INFO] [stderr] Compiling diesel v1.4.3 [INFO] [stderr] Compiling actix-http v1.0.1 [INFO] [stderr] Compiling awc v1.0.1 [INFO] [stderr] Compiling actix-web v2.0.0 [INFO] [stderr] Compiling practical-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{web,App, HttpResponse, HttpServer, get}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/model/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/model/user.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Local` [INFO] [stdout] --> src/model/user.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{NaiveDateTime, Local}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/db_connection.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{web, HttpResponse, get}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpRequest`, `delete`, `get`, `put` [INFO] [stdout] --> src/routes/user.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web,HttpResponse, HttpRequest, get, post, put, delete}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/routes/user.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{NaiveDateTime, Local}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `password` [INFO] [stdout] --> src/model/user.rs:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn login(email: String, password: String, conn: PgPooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_password` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findById` should have a snake case name [INFO] [stdout] --> src/model/product.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn findById(id: i32, conn: PgPooledConnection) -> Product { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `find_by_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findByIdAndUpdate` should have a snake case name [INFO] [stdout] --> src/model/product.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn findByIdAndUpdate(product: Product, conn: PgPooledConnection) -> Product { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_by_id_and_update` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findByIdAndRemove` should have a snake case name [INFO] [stdout] --> src/model/product.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn findByIdAndRemove(id: i32, conn: PgPooledConnection) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_by_id_and_remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.75s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.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" "a2ba34890632f1a6a52778578aa5b36652a6e8b3fad579ce9b52c28bb59a7c3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2ba34890632f1a6a52778578aa5b36652a6e8b3fad579ce9b52c28bb59a7c3d", kill_on_drop: false }` [INFO] [stdout] a2ba34890632f1a6a52778578aa5b36652a6e8b3fad579ce9b52c28bb59a7c3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06821583d4b3ba5f27ce7a70a3c3a64cd374cb728c651e418462b61734c2ad81 [INFO] running `Command { std: "docker" "start" "-a" "06821583d4b3ba5f27ce7a70a3c3a64cd374cb728c651e418462b61734c2ad81", kill_on_drop: false }` [INFO] [stderr] Compiling practical-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{web,App, HttpResponse, HttpServer, get}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/model/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/model/user.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Local` [INFO] [stdout] --> src/model/user.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{NaiveDateTime, Local}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/db_connection.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{web, HttpResponse, get}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpRequest`, `delete`, `get`, `put` [INFO] [stdout] --> src/routes/user.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web,HttpResponse, HttpRequest, get, post, put, delete}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/routes/user.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{NaiveDateTime, Local}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `password` [INFO] [stdout] --> src/model/user.rs:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn login(email: String, password: String, conn: PgPooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_password` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findById` should have a snake case name [INFO] [stdout] --> src/model/product.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn findById(id: i32, conn: PgPooledConnection) -> Product { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `find_by_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findByIdAndUpdate` should have a snake case name [INFO] [stdout] --> src/model/product.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn findByIdAndUpdate(product: Product, conn: PgPooledConnection) -> Product { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_by_id_and_update` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findByIdAndRemove` should have a snake case name [INFO] [stdout] --> src/model/product.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn findByIdAndRemove(id: i32, conn: PgPooledConnection) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_by_id_and_remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.11s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "06821583d4b3ba5f27ce7a70a3c3a64cd374cb728c651e418462b61734c2ad81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06821583d4b3ba5f27ce7a70a3c3a64cd374cb728c651e418462b61734c2ad81", kill_on_drop: false }` [INFO] [stdout] 06821583d4b3ba5f27ce7a70a3c3a64cd374cb728c651e418462b61734c2ad81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4cd19e28cc9581533bb58bf151b033d28fd744bb7f5d0e51bf0735a3263b7333 [INFO] running `Command { std: "docker" "start" "-a" "4cd19e28cc9581533bb58bf151b033d28fd744bb7f5d0e51bf0735a3263b7333", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `web` [INFO] [stderr] --> src/main.rs:4:17 [INFO] [stderr] | [INFO] [stderr] 4 | use actix_web::{web,App, HttpResponse, HttpServer, get}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `dotenv::dotenv` [INFO] [stderr] --> src/model/user.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use dotenv::dotenv; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/model/user.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Local` [INFO] [stderr] --> src/model/user.rs:6:29 [INFO] [stderr] | [INFO] [stderr] 6 | use chrono::{NaiveDateTime, Local}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get` [INFO] [stderr] --> src/db_connection.rs:3:36 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{web, HttpResponse, get}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HttpRequest`, `delete`, `get`, `put` [INFO] [stderr] --> src/routes/user.rs:1:35 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::{web,HttpResponse, HttpRequest, get, post, put, delete}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^ ^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/routes/user.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use chrono::{NaiveDateTime, Local}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `password` [INFO] [stderr] --> src/model/user.rs:63:33 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn login(email: String, password: String, conn: PgPooledConnection) -> Result { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_password` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `findById` should have a snake case name [INFO] [stderr] --> src/model/product.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn findById(id: i32, conn: PgPooledConnection) -> Product { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `find_by_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `findByIdAndUpdate` should have a snake case name [INFO] [stderr] --> src/model/product.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn findByIdAndUpdate(product: Product, conn: PgPooledConnection) -> Product { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_by_id_and_update` [INFO] [stderr] [INFO] [stderr] warning: method `findByIdAndRemove` should have a snake case name [INFO] [stderr] --> src/model/product.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn findByIdAndRemove(id: i32, conn: PgPooledConnection) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_by_id_and_remove` [INFO] [stderr] [INFO] [stderr] warning: `practical-rust` (bin "practical-rust" test) generated 11 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.0 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/practical_rust-ac90d8c387d2fbe2) [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" "4cd19e28cc9581533bb58bf151b033d28fd744bb7f5d0e51bf0735a3263b7333", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cd19e28cc9581533bb58bf151b033d28fd744bb7f5d0e51bf0735a3263b7333", kill_on_drop: false }` [INFO] [stdout] 4cd19e28cc9581533bb58bf151b033d28fd744bb7f5d0e51bf0735a3263b7333