[INFO] cloning repository https://github.com/Noah3141/rust_backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Noah3141/rust_backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah3141%2Frust_backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah3141%2Frust_backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97fa478af791a099eef43021dfcd89434ebfaa17 [INFO] testing Noah3141/rust_backend against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoah3141%2Frust_backend" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Noah3141/rust_backend 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/Noah3141/rust_backend [INFO] finished tweaking git repo https://github.com/Noah3141/rust_backend [INFO] tweaked toml for git repo https://github.com/Noah3141/rust_backend written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Noah3141/rust_backend 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] warning: unused manifest key: dependencies.chrono.feature [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sqlx-rt v0.6.3 [INFO] [stderr] Downloaded stringprep v0.1.2 [INFO] [stderr] Downloaded whoami v1.4.0 [INFO] [stderr] Downloaded sqlx-macros v0.6.3 [INFO] [stderr] Downloaded bytecheck_derive v0.6.11 [INFO] [stderr] Downloaded sea-query-binder v0.3.1 [INFO] [stderr] Downloaded sea-strum v0.23.0 [INFO] [stderr] Downloaded aliasable v0.1.3 [INFO] [stderr] Downloaded password-hash v0.5.0 [INFO] [stderr] Downloaded parking_lot_core v0.8.6 [INFO] [stderr] Downloaded arrayvec v0.7.2 [INFO] [stderr] Downloaded simdutf8 v0.1.4 [INFO] [stderr] Downloaded sea-query v0.28.5 [INFO] [stderr] Downloaded sqlx-core v0.6.3 [INFO] [stderr] Downloaded sea-orm v0.11.3 [INFO] [stderr] Downloaded futures-intrusive v0.4.2 [INFO] [stderr] Downloaded rkyv v0.7.42 [INFO] [stderr] Downloaded rust_decimal v1.29.1 [INFO] [stderr] Downloaded security-framework v2.9.1 [INFO] [stderr] Downloaded sqlx v0.6.3 [INFO] [stderr] Downloaded parking_lot v0.11.2 [INFO] [stderr] Downloaded hashlink v0.8.2 [INFO] [stderr] Downloaded bytecheck v0.6.11 [INFO] [stderr] Downloaded rend v0.4.0 [INFO] [stderr] Downloaded rkyv_derive v0.7.42 [INFO] [stderr] Downloaded sqlformat v0.2.1 [INFO] [stderr] Downloaded ouroboros_macro v0.15.6 [INFO] [stderr] Downloaded ouroboros v0.15.6 [INFO] [stderr] Downloaded sea-orm-macros v0.11.3 [INFO] [stderr] Downloaded sea-strum_macros v0.23.0 [INFO] [stderr] Downloaded atoi v1.0.0 [INFO] [stderr] Downloaded bigdecimal v0.3.1 [INFO] [stderr] Downloaded bae v0.1.7 [INFO] [stderr] Downloaded sea-query-derive v0.3.0 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] ebe5d394e9fe8891999868e5d2b2d0273df67850266b4604f6ad90c98bc06cf7 [INFO] running `Command { std: "docker" "start" "-a" "ebe5d394e9fe8891999868e5d2b2d0273df67850266b4604f6ad90c98bc06cf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ebe5d394e9fe8891999868e5d2b2d0273df67850266b4604f6ad90c98bc06cf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebe5d394e9fe8891999868e5d2b2d0273df67850266b4604f6ad90c98bc06cf7", kill_on_drop: false }` [INFO] [stdout] ebe5d394e9fe8891999868e5d2b2d0273df67850266b4604f6ad90c98bc06cf7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 48e1a8055a9c8906f9276306aaa87d7adf0575b53ac14aec2fe148da54f1d629 [INFO] running `Command { std: "docker" "start" "-a" "48e1a8055a9c8906f9276306aaa87d7adf0575b53ac14aec2fe148da54f1d629", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.chrono.feature [INFO] [stderr] Compiling proc-macro2 v1.0.58 [INFO] [stderr] Compiling quote v1.0.27 [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling openssl-sys v0.9.87 [INFO] [stderr] Compiling tokio v1.28.1 [INFO] [stderr] Compiling time-macros v0.2.9 [INFO] [stderr] Compiling openssl v0.10.52 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling rust_decimal v1.29.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling iana-time-zone v0.1.56 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling cpufeatures v0.2.7 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling syn v2.0.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.8.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling time v0.3.21 [INFO] [stderr] Compiling sqlformat v0.2.1 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling whoami v1.4.0 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling uuid v1.3.3 [INFO] [stderr] Compiling bitflags v2.3.1 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Compiling rustix v0.37.19 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling rocket v0.5.0-rc.3 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling ouroboros_macro v0.15.6 [INFO] [stderr] Compiling bae v0.1.7 [INFO] [stderr] Compiling sea-strum_macros v0.23.0 [INFO] [stderr] Compiling sea-orm-macros v0.11.3 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.0 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling hyper v0.14.26 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling ouroboros v0.15.6 [INFO] [stderr] Compiling sea-strum v0.23.0 [INFO] [stderr] Compiling is-terminal v0.4.7 [INFO] [stderr] Compiling tempfile v3.5.0 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [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 async-trait v0.1.68 [INFO] [stderr] Compiling ref-cast v1.0.16 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling pear v0.2.4 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling sea-query-derive v0.3.0 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling sqlx-rt v0.6.3 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.3 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling h2 v0.3.19 [INFO] [stderr] Compiling ubyte v0.10.3 [INFO] [stderr] Compiling figment v0.10.8 [INFO] [stderr] Compiling sqlx-core v0.6.3 [INFO] [stderr] Compiling sea-query v0.28.5 [INFO] [stderr] Compiling sqlx-macros v0.6.3 [INFO] [stderr] Compiling sqlx v0.6.3 [INFO] [stderr] Compiling sea-query-binder v0.3.1 [INFO] [stderr] Compiling sea-orm v0.11.3 [INFO] [stderr] Compiling rust_backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `chrono::DateTime` [INFO] [stdout] --> src/routes/account.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::DateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActiveModelTrait`, `Set` [INFO] [stdout] --> src/routes/account.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use sea_orm::{Set, ActiveModelTrait}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entities` [INFO] [stdout] --> src/routes/account.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | {db::*, entities} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_account` [INFO] [stdout] --> src/routes/account.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn create_account(db: &State, create_account_form: Json) -> (http::Status, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_account` [INFO] [stdout] --> src/routes/account.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn update_account(db: &State, update_account_form: Json) -> (http::Status, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_account_by_id` [INFO] [stdout] --> src/routes/account.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn get_account_by_id(db: &State, id: i32) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_account_by_username` [INFO] [stdout] --> src/routes/account.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub async fn get_account_by_username(db: &State, username: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::accounts::Entity as Accounts` [INFO] [stdout] --> src/models/entities/prelude.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use super::accounts::Entity as Accounts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/routes/account.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(r) => (http::Status::Ok, String::from("Succesfully created account")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_result` [INFO] [stdout] --> src/models/account.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let db_result = account [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/routes/account.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | Ok(r) => (http::Status::Ok, String::from("Succesfully updated account")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update_form` [INFO] [stdout] --> src/models/account.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn update_account(&self, update_form: UpdateAccountForm) -> Result<(), DbErr> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_form` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/account.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | Err(e) => Err(String::from("Could not get the requested resource: {e}")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/account.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | Err(e) => Err(String::from("Could not get the requested resource: {e}")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `hash`, `account_deleted`, `membership_status`, and `pro_status` are never read [INFO] [stdout] --> src/routes/account.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct UpdateAccountForm { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 31 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 32 | pub hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | pub account_deleted: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub membership_status: bool, // As this gets updated, we want to change the relevant fields of the account with it [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub pro_status: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 43s [INFO] running `Command { std: "docker" "inspect" "48e1a8055a9c8906f9276306aaa87d7adf0575b53ac14aec2fe148da54f1d629", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48e1a8055a9c8906f9276306aaa87d7adf0575b53ac14aec2fe148da54f1d629", kill_on_drop: false }` [INFO] [stdout] 48e1a8055a9c8906f9276306aaa87d7adf0575b53ac14aec2fe148da54f1d629 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 38698b03ffed9df5842006ec5c127f13bfb1fcd82e09015e02264812fec852b9 [INFO] running `Command { std: "docker" "start" "-a" "38698b03ffed9df5842006ec5c127f13bfb1fcd82e09015e02264812fec852b9", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.chrono.feature [INFO] [stderr] Compiling rust_backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `chrono::DateTime` [INFO] [stdout] --> src/routes/account.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::DateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActiveModelTrait`, `Set` [INFO] [stdout] --> src/routes/account.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use sea_orm::{Set, ActiveModelTrait}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entities` [INFO] [stdout] --> src/routes/account.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | {db::*, entities} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_account` [INFO] [stdout] --> src/routes/account.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn create_account(db: &State, create_account_form: Json) -> (http::Status, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_account` [INFO] [stdout] --> src/routes/account.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn update_account(db: &State, update_account_form: Json) -> (http::Status, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_account_by_id` [INFO] [stdout] --> src/routes/account.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn get_account_by_id(db: &State, id: i32) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_account_by_username` [INFO] [stdout] --> src/routes/account.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub async fn get_account_by_username(db: &State, username: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::accounts::Entity as Accounts` [INFO] [stdout] --> src/models/entities/prelude.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use super::accounts::Entity as Accounts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/routes/account.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(r) => (http::Status::Ok, String::from("Succesfully created account")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_result` [INFO] [stdout] --> src/models/account.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let db_result = account [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/routes/account.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | Ok(r) => (http::Status::Ok, String::from("Succesfully updated account")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update_form` [INFO] [stdout] --> src/models/account.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn update_account(&self, update_form: UpdateAccountForm) -> Result<(), DbErr> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_form` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/account.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | Err(e) => Err(String::from("Could not get the requested resource: {e}")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/account.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | Err(e) => Err(String::from("Could not get the requested resource: {e}")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `hash`, `account_deleted`, `membership_status`, and `pro_status` are never read [INFO] [stdout] --> src/routes/account.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct UpdateAccountForm { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 31 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 32 | pub hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | pub account_deleted: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub membership_status: bool, // As this gets updated, we want to change the relevant fields of the account with it [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub pro_status: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.65s [INFO] running `Command { std: "docker" "inspect" "38698b03ffed9df5842006ec5c127f13bfb1fcd82e09015e02264812fec852b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38698b03ffed9df5842006ec5c127f13bfb1fcd82e09015e02264812fec852b9", kill_on_drop: false }` [INFO] [stdout] 38698b03ffed9df5842006ec5c127f13bfb1fcd82e09015e02264812fec852b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 26c7b15867c3dd57c0e36f82d56ed6c80e5b9007ed8a472d18c955f384b37853 [INFO] running `Command { std: "docker" "start" "-a" "26c7b15867c3dd57c0e36f82d56ed6c80e5b9007ed8a472d18c955f384b37853", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.chrono.feature [INFO] [stderr] warning: unused import: `chrono::DateTime` [INFO] [stderr] --> src/routes/account.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use chrono::DateTime; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ActiveModelTrait`, `Set` [INFO] [stderr] --> src/routes/account.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use sea_orm::{Set, ActiveModelTrait}; [INFO] [stderr] | ^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `entities` [INFO] [stderr] --> src/routes/account.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | {db::*, entities} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `create_account` [INFO] [stderr] --> src/routes/account.rs:21:14 [INFO] [stderr] | [INFO] [stderr] 21 | pub async fn create_account(db: &State, create_account_form: Json) -> (http::Status, String) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `update_account` [INFO] [stderr] --> src/routes/account.rs:43:14 [INFO] [stderr] | [INFO] [stderr] 43 | pub async fn update_account(db: &State, update_account_form: Json) -> (http::Status, String) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_account_by_id` [INFO] [stderr] --> src/routes/account.rs:53:14 [INFO] [stderr] | [INFO] [stderr] 53 | pub async fn get_account_by_id(db: &State, id: i32) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_account_by_username` [INFO] [stderr] --> src/routes/account.rs:65:14 [INFO] [stderr] | [INFO] [stderr] 65 | pub async fn get_account_by_username(db: &State, username: String) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::accounts::Entity as Accounts` [INFO] [stderr] --> src/models/entities/prelude.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | pub use super::accounts::Entity as Accounts; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/routes/account.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | Ok(r) => (http::Status::Ok, String::from("Succesfully created account")), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db_result` [INFO] [stderr] --> src/models/account.rs:41:13 [INFO] [stderr] | [INFO] [stderr] 41 | let db_result = account [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/routes/account.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | Ok(r) => (http::Status::Ok, String::from("Succesfully updated account")), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `update_form` [INFO] [stderr] --> src/models/account.rs:64:40 [INFO] [stderr] | [INFO] [stderr] 64 | pub async fn update_account(&self, update_form: UpdateAccountForm) -> Result<(), DbErr> { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_form` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/routes/account.rs:60:13 [INFO] [stderr] | [INFO] [stderr] 60 | Err(e) => Err(String::from("Could not get the requested resource: {e}")) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/routes/account.rs:72:13 [INFO] [stderr] | [INFO] [stderr] 72 | Err(e) => Err(String::from("Could not get the requested resource: {e}")) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: fields `username`, `hash`, `account_deleted`, `membership_status`, and `pro_status` are never read [INFO] [stderr] --> src/routes/account.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct UpdateAccountForm { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] 31 | pub username: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 32 | pub hash: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 33 | pub account_deleted: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 34 | pub membership_status: bool, // As this gets updated, we want to change the relevant fields of the account with it [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 35 | pub pro_status: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust_backend` (bin "rust_backend" test) generated 15 warnings (run `cargo fix --bin "rust_backend" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_backend-baf5794eccd27bd6) [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" "26c7b15867c3dd57c0e36f82d56ed6c80e5b9007ed8a472d18c955f384b37853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26c7b15867c3dd57c0e36f82d56ed6c80e5b9007ed8a472d18c955f384b37853", kill_on_drop: false }` [INFO] [stdout] 26c7b15867c3dd57c0e36f82d56ed6c80e5b9007ed8a472d18c955f384b37853