[INFO] cloning repository https://github.com/ahqrt/rocket_templete [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ahqrt/rocket_templete" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahqrt%2Frocket_templete", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahqrt%2Frocket_templete'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 883eec4885a93e3a08f27493986702248b0f481c [INFO] testing ahqrt/rocket_templete against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahqrt%2Frocket_templete" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ahqrt/rocket_templete on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ahqrt/rocket_templete [INFO] finished tweaking git repo https://github.com/ahqrt/rocket_templete [INFO] tweaked toml for git repo https://github.com/ahqrt/rocket_templete written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ahqrt/rocket_templete 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.79.0" "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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml v0.7.5 [INFO] [stderr] Downloaded toml_edit v0.19.11 [INFO] [stderr] Downloaded pq-sys v0.4.8 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.1.0 [INFO] [stderr] Downloaded diesel v2.1.0 [INFO] [stderr] Downloaded equivalent v1.0.0 [INFO] [stderr] Downloaded diesel_derives v2.1.0 [INFO] [stderr] Downloaded winnow v0.4.7 [INFO] [stderr] Downloaded bitflags v2.3.2 [INFO] [stderr] Downloaded rocket_sync_db_pools_codegen v0.1.0-rc.3 [INFO] [stderr] Downloaded rocket_sync_db_pools v0.1.0-rc.3 [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e54723d41765d08f6d302564dfe24bd0a18d0dc176fb794b2ba71088bd21a7aa [INFO] running `Command { std: "docker" "start" "-a" "e54723d41765d08f6d302564dfe24bd0a18d0dc176fb794b2ba71088bd21a7aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e54723d41765d08f6d302564dfe24bd0a18d0dc176fb794b2ba71088bd21a7aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e54723d41765d08f6d302564dfe24bd0a18d0dc176fb794b2ba71088bd21a7aa", kill_on_drop: false }` [INFO] [stdout] e54723d41765d08f6d302564dfe24bd0a18d0dc176fb794b2ba71088bd21a7aa [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=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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4179fa426b27a2921625471c059ee32ddb31bdafff9dd7588ee721ba5be49036 [INFO] running `Command { std: "docker" "start" "-a" "4179fa426b27a2921625471c059ee32ddb31bdafff9dd7588ee721ba5be49036", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling bitflags v2.3.2 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling time-macros v0.2.9 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling ref-cast v1.0.16 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling equivalent v1.0.0 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling time v0.3.22 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling winnow v0.4.7 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Compiling figment v0.10.10 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.1.0 [INFO] [stderr] Compiling rocket v0.5.0-rc.3 [INFO] [stderr] Compiling hyper v0.14.26 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling is-terminal v0.4.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling rocket_sync_db_pools v0.1.0-rc.3 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling chrono v0.4.26 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pear_codegen v0.2.4 [INFO] [stderr] Compiling ref-cast-impl v1.0.16 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling diesel_derives v2.1.0 [INFO] [stderr] Compiling rocket_sync_db_pools_codegen v0.1.0-rc.3 [INFO] [stderr] Compiling pear v0.2.4 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.3 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.3 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling diesel v2.1.0 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling toml_edit v0.19.11 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Compiling ubyte v0.10.3 [INFO] [stderr] Compiling h2 v0.3.19 [INFO] [stderr] Compiling toml v0.7.5 [INFO] [stderr] Compiling rocket_templete v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/models.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> src/routes/rustaceans.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::serde::json::{serde_json::json, Json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewRustacean`, `Rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::{NewRustacean, Rustacean}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_rustaceans` [INFO] [stdout] --> src/routes/rustaceans.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rustaceans() -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `view_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn view_rustacean(id: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn create_rustacean() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn update_rustacean(id: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn delete_rustacean(id: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/rustaceans.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn view_rustacean(id: i32) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/rustaceans.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn update_rustacean(id: i32) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/rustaceans.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn delete_rustacean(id: i32) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `email`, and `created_at` are never read [INFO] [stdout] --> src/models.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Rustacean { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub created_at: chrono::NaiveDateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Crate { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 23 | pub rustacean_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | pub code: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | pub description: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | pub created_at: chrono::NaiveDateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RustaceanRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RustaceanRepository; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_multiple`, `find`, `create`, `save`, and `delete` are never used [INFO] [stdout] --> src/repositories.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl RustaceanRepository { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] 8 | pub fn find_multiple(conn: &PgConnection, limit: i64) -> QueryResult> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn find(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn create(conn: &PgConnection, new_rustacean: NewRustacean) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn save(conn: &PgConnection, id: i32, rustacean: Rustacean) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn delete(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrateRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct CrateRepository; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_multiple`, `find`, `create`, `save`, and `delete` are never used [INFO] [stdout] --> src/repositories.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl CrateRepository { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 42 | pub fn find_multiple(conn: &PgConnection, limit: i64) -> QueryResult> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn find(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create(conn: &PgConnection, new_crate: NewCrate) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn save(conn: &PgConnection, id: i32, a_crate: Crate) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn delete(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 51s [INFO] running `Command { std: "docker" "inspect" "4179fa426b27a2921625471c059ee32ddb31bdafff9dd7588ee721ba5be49036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4179fa426b27a2921625471c059ee32ddb31bdafff9dd7588ee721ba5be49036", kill_on_drop: false }` [INFO] [stdout] 4179fa426b27a2921625471c059ee32ddb31bdafff9dd7588ee721ba5be49036 [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=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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f94a0145a25ebb1aa7580149f88133c946bc5ae293133539eed890a71441829 [INFO] running `Command { std: "docker" "start" "-a" "1f94a0145a25ebb1aa7580149f88133c946bc5ae293133539eed890a71441829", kill_on_drop: false }` [INFO] [stderr] Compiling rocket_templete v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/models.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> src/routes/rustaceans.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::serde::json::{serde_json::json, Json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewRustacean`, `Rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::{NewRustacean, Rustacean}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_rustaceans` [INFO] [stdout] --> src/routes/rustaceans.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_rustaceans() -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `view_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn view_rustacean(id: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn create_rustacean() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn update_rustacean(id: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete_rustacean` [INFO] [stdout] --> src/routes/rustaceans.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn delete_rustacean(id: i32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/rustaceans.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn view_rustacean(id: i32) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/rustaceans.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn update_rustacean(id: i32) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/rustaceans.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn delete_rustacean(id: i32) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `email`, and `created_at` are never read [INFO] [stdout] --> src/models.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Rustacean { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub created_at: chrono::NaiveDateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Crate { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 23 | pub rustacean_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | pub code: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | pub description: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | pub created_at: chrono::NaiveDateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RustaceanRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RustaceanRepository; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_multiple`, `find`, `create`, `save`, and `delete` are never used [INFO] [stdout] --> src/repositories.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl RustaceanRepository { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] 8 | pub fn find_multiple(conn: &PgConnection, limit: i64) -> QueryResult> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn find(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn create(conn: &PgConnection, new_rustacean: NewRustacean) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn save(conn: &PgConnection, id: i32, rustacean: Rustacean) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn delete(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrateRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct CrateRepository; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_multiple`, `find`, `create`, `save`, and `delete` are never used [INFO] [stdout] --> src/repositories.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl CrateRepository { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 42 | pub fn find_multiple(conn: &PgConnection, limit: i64) -> QueryResult> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn find(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create(conn: &PgConnection, new_crate: NewCrate) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn save(conn: &PgConnection, id: i32, a_crate: Crate) -> QueryResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn delete(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "1f94a0145a25ebb1aa7580149f88133c946bc5ae293133539eed890a71441829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f94a0145a25ebb1aa7580149f88133c946bc5ae293133539eed890a71441829", kill_on_drop: false }` [INFO] [stdout] 1f94a0145a25ebb1aa7580149f88133c946bc5ae293133539eed890a71441829 [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=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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f2377942692d195ddb409a76d4238356649ca5c6451b33019ac6a15c268102cb [INFO] running `Command { std: "docker" "start" "-a" "f2377942692d195ddb409a76d4238356649ca5c6451b33019ac6a15c268102cb", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stderr] --> src/models.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Json` [INFO] [stderr] --> src/routes/rustaceans.rs:1:45 [INFO] [stderr] | [INFO] [stderr] 1 | use rocket::serde::json::{serde_json::json, Json, Value}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `NewRustacean`, `Rustacean` [INFO] [stderr] --> src/routes/rustaceans.rs:3:21 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::models::{NewRustacean, Rustacean}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_rustaceans` [INFO] [stderr] --> src/routes/rustaceans.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn get_rustaceans() -> Value { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `view_rustacean` [INFO] [stderr] --> src/routes/rustaceans.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn view_rustacean(id: i32) {} [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `create_rustacean` [INFO] [stderr] --> src/routes/rustaceans.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn create_rustacean() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `update_rustacean` [INFO] [stderr] --> src/routes/rustaceans.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn update_rustacean(id: i32) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `delete_rustacean` [INFO] [stderr] --> src/routes/rustaceans.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn delete_rustacean(id: i32) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/routes/rustaceans.rs:11:23 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn view_rustacean(id: i32) {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/routes/rustaceans.rs:17:25 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn update_rustacean(id: i32) {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/routes/rustaceans.rs:20:25 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn delete_rustacean(id: i32) {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `name`, `email`, and `created_at` are never read [INFO] [stderr] --> src/models.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Rustacean { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 6 | pub id: i32, [INFO] [stderr] | ^^ [INFO] [stderr] 7 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 8 | pub email: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 9 | pub created_at: chrono::NaiveDateTime, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/models.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct Crate { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 22 | pub id: i32, [INFO] [stderr] | ^^ [INFO] [stderr] 23 | pub rustacean_id: i32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 24 | pub code: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 25 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 26 | pub version: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 27 | pub description: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 28 | pub created_at: chrono::NaiveDateTime, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RustaceanRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct RustaceanRepository; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `find_multiple`, `find`, `create`, `save`, and `delete` are never used [INFO] [stderr] --> src/repositories.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl RustaceanRepository { [INFO] [stderr] | ------------------------ associated functions in this implementation [INFO] [stderr] 8 | pub fn find_multiple(conn: &PgConnection, limit: i64) -> QueryResult> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 15 | pub fn find(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | pub fn create(conn: &PgConnection, new_rustacean: NewRustacean) -> QueryResult { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn save(conn: &PgConnection, id: i32, rustacean: Rustacean) -> QueryResult { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn delete(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CrateRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | pub struct CrateRepository; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `find_multiple`, `find`, `create`, `save`, and `delete` are never used [INFO] [stderr] --> src/repositories.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 41 | impl CrateRepository { [INFO] [stderr] | -------------------- associated functions in this implementation [INFO] [stderr] 42 | pub fn find_multiple(conn: &PgConnection, limit: i64) -> QueryResult> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 49 | pub fn find(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn create(conn: &PgConnection, new_crate: NewCrate) -> QueryResult { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | pub fn save(conn: &PgConnection, id: i32, a_crate: Crate) -> QueryResult { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | pub fn delete(conn: &PgConnection, id: i32) -> QueryResult { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rocket_templete` (bin "rocket_templete" test) generated 17 warnings (run `cargo fix --bin "rocket_templete" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rocket_templete-518e5e7faf9c1d53) [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" "f2377942692d195ddb409a76d4238356649ca5c6451b33019ac6a15c268102cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2377942692d195ddb409a76d4238356649ca5c6451b33019ac6a15c268102cb", kill_on_drop: false }` [INFO] [stdout] f2377942692d195ddb409a76d4238356649ca5c6451b33019ac6a15c268102cb