[INFO] cloning repository https://github.com/uzzol101/rust-rest-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uzzol101/rust-rest-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuzzol101%2Frust-rest-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuzzol101%2Frust-rest-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ffbe0ca4f1c1ccc6b3c9389d519ded26fbe5a622 [INFO] testing uzzol101/rust-rest-api against 1.63.0 for beta-1.64-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuzzol101%2Frust-rest-api" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uzzol101/rust-rest-api on toolchain 1.63.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.63.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uzzol101/rust-rest-api [INFO] finished tweaking git repo https://github.com/uzzol101/rust-rest-api [INFO] tweaked toml for git repo https://github.com/uzzol101/rust-rest-api written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/uzzol101/rust-rest-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.63.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dotenv v0.9.0 [INFO] [stderr] Downloaded aho-corasick v0.7.7 [INFO] [stderr] Downloaded backtrace v0.3.43 [INFO] [stderr] Downloaded ucd-util v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 122009f37237c22b77c7eac9527a5db088089da018b3cd677cd4385751a14ea4 [INFO] running `Command { std: "docker" "start" "-a" "122009f37237c22b77c7eac9527a5db088089da018b3cd677cd4385751a14ea4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "122009f37237c22b77c7eac9527a5db088089da018b3cd677cd4385751a14ea4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "122009f37237c22b77c7eac9527a5db088089da018b3cd677cd4385751a14ea4", kill_on_drop: false }` [INFO] [stdout] 122009f37237c22b77c7eac9527a5db088089da018b3cd677cd4385751a14ea4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3974294161c7e8d8d74e1bc37ded73e3460e4014d52adb35dbe013c6b6321c3b [INFO] running `Command { std: "docker" "start" "-a" "3974294161c7e8d8d74e1bc37ded73e3460e4014d52adb35dbe013c6b6321c3b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling memchr v2.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling futures-core v0.3.1 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-sink v0.3.1 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling smallvec v1.2.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling futures-io v0.3.1 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling futures-task v0.3.1 [INFO] [stderr] Compiling arc-swap v0.4.4 [INFO] [stderr] Compiling pin-project-lite v0.1.4 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling copyless v0.1.4 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling linked-hash-map v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.14 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling httparse v1.3.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 regex v0.2.11 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling ucd-util v0.1.7 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.12 [INFO] [stderr] Compiling lock_api v0.3.3 [INFO] [stderr] Compiling bytestring v0.1.4 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling http v0.2.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling indexmap v1.3.1 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling miniz_oxide v0.3.5 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling aho-corasick v0.7.7 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [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 atty v0.2.14 [INFO] [stderr] Compiling listenfd v0.3.3 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling flate2 v1.0.13 [INFO] [stderr] Compiling regex v1.3.4 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling parking_lot v0.10.0 [INFO] [stderr] Compiling threadpool v1.7.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling dotenv v0.9.0 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling chrono v0.4.10 [INFO] [stderr] Compiling backtrace v0.3.43 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio v0.2.11 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling derive_more v0.99.2 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling actix-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling enum-as-inner v0.3.0 [INFO] [stderr] Compiling async-trait v0.1.22 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix-web-codegen v0.2.0 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling pin-project v0.4.8 [INFO] [stderr] Compiling futures-util v0.3.1 [INFO] [stderr] Compiling diesel v1.4.3 [INFO] [stderr] Compiling actix-threadpool v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.1 [INFO] [stderr] Compiling actix-service v1.0.5 [INFO] [stderr] Compiling h2 v0.2.1 [INFO] [stderr] Compiling futures v0.3.1 [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 serde_json v1.0.45 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling actix-router v0.2.4 [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 actix-connect v1.0.2 [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 test-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/user/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResponseError`, `put` [INFO] [stdout] --> src/user/routes.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get,post,delete,put, HttpResponse, ResponseError, Error, web}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/user/routes.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | async fn delete(param: web::Path<(i32)>) -> Result { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - async fn delete(param: web::Path<(i32)>) -> Result { [INFO] [stdout] 29 + async fn delete(param: web::Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::result::Error as DieselError` [INFO] [stdout] --> src/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::result::Error as DieselError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Newuser`, `User` [INFO] [stdout] --> src/main.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | use user::model::{User, Newuser}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find` is never used [INFO] [stdout] --> src/user/model.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn find(id:i32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/user/model.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn update(id: i32, user: Newuser) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/user/routes.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | User::delete(param.into_inner()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 06s [INFO] running `Command { std: "docker" "inspect" "3974294161c7e8d8d74e1bc37ded73e3460e4014d52adb35dbe013c6b6321c3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3974294161c7e8d8d74e1bc37ded73e3460e4014d52adb35dbe013c6b6321c3b", kill_on_drop: false }` [INFO] [stdout] 3974294161c7e8d8d74e1bc37ded73e3460e4014d52adb35dbe013c6b6321c3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72c418df5b86f93f7ff77681c9cef1a2de3a2bb02a8874d7b1d02a60645e33c3 [INFO] running `Command { std: "docker" "start" "-a" "72c418df5b86f93f7ff77681c9cef1a2de3a2bb02a8874d7b1d02a60645e33c3", kill_on_drop: false }` [INFO] [stderr] Compiling test-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/user/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResponseError`, `put` [INFO] [stdout] --> src/user/routes.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get,post,delete,put, HttpResponse, ResponseError, Error, web}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/user/routes.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | async fn delete(param: web::Path<(i32)>) -> Result { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - async fn delete(param: web::Path<(i32)>) -> Result { [INFO] [stdout] 29 + async fn delete(param: web::Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::result::Error as DieselError` [INFO] [stdout] --> src/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::result::Error as DieselError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Newuser`, `User` [INFO] [stdout] --> src/main.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | use user::model::{User, Newuser}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find` is never used [INFO] [stdout] --> src/user/model.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn find(id:i32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `update` is never used [INFO] [stdout] --> src/user/model.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn update(id: i32, user: Newuser) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/user/routes.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | User::delete(param.into_inner()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "72c418df5b86f93f7ff77681c9cef1a2de3a2bb02a8874d7b1d02a60645e33c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72c418df5b86f93f7ff77681c9cef1a2de3a2bb02a8874d7b1d02a60645e33c3", kill_on_drop: false }` [INFO] [stdout] 72c418df5b86f93f7ff77681c9cef1a2de3a2bb02a8874d7b1d02a60645e33c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+1.63.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0433e65c03019eea4b9c8f348d0e1e08b2cb67010e7355f6d05222c11c70ad9e [INFO] running `Command { std: "docker" "start" "-a" "0433e65c03019eea4b9c8f348d0e1e08b2cb67010e7355f6d05222c11c70ad9e", kill_on_drop: false }` [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::json` [INFO] [stderr] --> src/user/model.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ResponseError`, `put` [INFO] [stderr] --> src/user/routes.rs:1:33 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::{get,post,delete,put, HttpResponse, ResponseError, Error, web}; [INFO] [stderr] | ^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/user/routes.rs:29:34 [INFO] [stderr] | [INFO] [stderr] 29 | async fn delete(param: web::Path<(i32)>) -> Result { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 29 - async fn delete(param: web::Path<(i32)>) -> Result { [INFO] [stderr] 29 + async fn delete(param: web::Path) -> Result { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::result::Error as DieselError` [INFO] [stderr] --> src/db.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use diesel::result::Error as DieselError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Newuser`, `User` [INFO] [stderr] --> src/main.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | use user::model::{User, Newuser}; [INFO] [stderr] | ^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `find` is never used [INFO] [stderr] --> src/user/model.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn find(id:i32) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `update` is never used [INFO] [stderr] --> src/user/model.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn update(id: i32, user: Newuser) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/user/routes.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | User::delete(param.into_inner()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `test-api` (bin "test-api" test) generated 9 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/test_api-cdf6552fa1d86133) [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" "0433e65c03019eea4b9c8f348d0e1e08b2cb67010e7355f6d05222c11c70ad9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0433e65c03019eea4b9c8f348d0e1e08b2cb67010e7355f6d05222c11c70ad9e", kill_on_drop: false }` [INFO] [stdout] 0433e65c03019eea4b9c8f348d0e1e08b2cb67010e7355f6d05222c11c70ad9e