[INFO] cloning repository https://github.com/vg100/rust_project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vg100/rust_project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvg100%2Frust_project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvg100%2Frust_project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b942666838a975680985f69ad4c6bf0432167b0a [INFO] building vg100/rust_project against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvg100%2Frust_project" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vg100/rust_project [INFO] finished tweaking git repo https://github.com/vg100/rust_project [INFO] tweaked toml for git repo https://github.com/vg100/rust_project written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vg100/rust_project on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vg100/rust_project 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zstd-safe v7.2.0 [INFO] [stderr] Downloaded actix-web-actors v4.3.0 [INFO] [stderr] Downloaded cc v1.1.4 [INFO] [stderr] Downloaded actix v0.13.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a9162c4e99d62bcc98ee97753dabf471da40496d074ca40b9781b8856369763 [INFO] running `Command { std: "docker" "start" "-a" "6a9162c4e99d62bcc98ee97753dabf471da40496d074ca40b9781b8856369763", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a9162c4e99d62bcc98ee97753dabf471da40496d074ca40b9781b8856369763", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a9162c4e99d62bcc98ee97753dabf471da40496d074ca40b9781b8856369763", kill_on_drop: false }` [INFO] [stdout] 6a9162c4e99d62bcc98ee97753dabf471da40496d074ca40b9781b8856369763 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5d3c8ec510ff4eff49190f44f3f6d7b794ae812999838a7b215c30a12ec0f11 [INFO] running `Command { std: "docker" "start" "-a" "f5d3c8ec510ff4eff49190f44f3f6d7b794ae812999838a7b215c30a12ec0f11", kill_on_drop: false }` [INFO] [stderr] Compiling bytes v1.6.1 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling cc v1.1.4 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.4.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix v0.13.5 [INFO] [stderr] Compiling actix-http v3.8.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-web v4.8.0 [INFO] [stderr] Compiling actix-web-actors v4.3.0 [INFO] [stderr] Compiling rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HttpRequest` [INFO] [stdout] --> src/controllers/user_controller.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder,HttpRequest}; [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 import: `actix_web_actors::ws` [INFO] [stdout] --> src/controllers/user_controller.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web_actors::ws; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service` [INFO] [stdout] --> src/controllers/user_controller.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn get_users(service: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service` [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` [INFO] [stdout] --> src/controllers/user_controller.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let user = service.create_user(new_user.into_inner()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/controllers/user_controller.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let user = service.update_user(id.into_inner(), updated_user.into_inner()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `products` [INFO] [stdout] --> src/controllers/product_controller.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let products = service.get_all_products(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_products` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/controllers/product_controller.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let product = service.create_product(new_product.into_inner()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/controllers/product_controller.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let product = service.update_product(id.into_inner(), updated_product.into_inner()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database_url` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "f5d3c8ec510ff4eff49190f44f3f6d7b794ae812999838a7b215c30a12ec0f11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5d3c8ec510ff4eff49190f44f3f6d7b794ae812999838a7b215c30a12ec0f11", kill_on_drop: false }` [INFO] [stdout] f5d3c8ec510ff4eff49190f44f3f6d7b794ae812999838a7b215c30a12ec0f11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d01c38052227910328601467a7fd8d3bef317d9785fd5cdc92d53a0872f4326 [INFO] running `Command { std: "docker" "start" "-a" "7d01c38052227910328601467a7fd8d3bef317d9785fd5cdc92d53a0872f4326", kill_on_drop: false }` [INFO] [stderr] Compiling rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HttpRequest` [INFO] [stdout] --> src/controllers/user_controller.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder,HttpRequest}; [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 import: `actix_web_actors::ws` [INFO] [stdout] --> src/controllers/user_controller.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web_actors::ws; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service` [INFO] [stdout] --> src/controllers/user_controller.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn get_users(service: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service` [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` [INFO] [stdout] --> src/controllers/user_controller.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let user = service.create_user(new_user.into_inner()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/controllers/user_controller.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let user = service.update_user(id.into_inner(), updated_user.into_inner()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `products` [INFO] [stdout] --> src/controllers/product_controller.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let products = service.get_all_products(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_products` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/controllers/product_controller.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let product = service.create_product(new_product.into_inner()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/controllers/product_controller.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let product = service.update_product(id.into_inner(), updated_product.into_inner()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database_url` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpRequest` [INFO] [stdout] --> src/controllers/user_controller.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder,HttpRequest}; [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 import: `actix_web_actors::ws` [INFO] [stdout] --> src/controllers/user_controller.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web_actors::ws; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service` [INFO] [stdout] --> src/controllers/user_controller.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn get_users(service: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service` [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` [INFO] [stdout] --> src/controllers/user_controller.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let user = service.create_user(new_user.into_inner()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/controllers/user_controller.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let user = service.update_user(id.into_inner(), updated_user.into_inner()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `products` [INFO] [stdout] --> src/controllers/product_controller.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let products = service.get_all_products(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_products` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/controllers/product_controller.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let product = service.create_product(new_product.into_inner()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/controllers/product_controller.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let product = service.update_product(id.into_inner(), updated_product.into_inner()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.18s [INFO] running `Command { std: "docker" "inspect" "7d01c38052227910328601467a7fd8d3bef317d9785fd5cdc92d53a0872f4326", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d01c38052227910328601467a7fd8d3bef317d9785fd5cdc92d53a0872f4326", kill_on_drop: false }` [INFO] [stdout] 7d01c38052227910328601467a7fd8d3bef317d9785fd5cdc92d53a0872f4326