[INFO] cloning repository https://github.com/BenNotBen1224/Berkeley-NanoTech [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BenNotBen1224/Berkeley-NanoTech" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenNotBen1224%2FBerkeley-NanoTech", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenNotBen1224%2FBerkeley-NanoTech'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb532626e615aa841ec298ea7f0ad76994227af1 [INFO] testing BenNotBen1224/Berkeley-NanoTech against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenNotBen1224%2FBerkeley-NanoTech" "/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/BenNotBen1224/Berkeley-NanoTech [INFO] finished tweaking git repo https://github.com/BenNotBen1224/Berkeley-NanoTech [INFO] tweaked toml for git repo https://github.com/BenNotBen1224/Berkeley-NanoTech written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/BenNotBen1224/Berkeley-NanoTech on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/BenNotBen1224/Berkeley-NanoTech 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded psm v0.1.24 [INFO] [stderr] Downloaded tokio-rusqlite v0.6.0 [INFO] [stderr] Downloaded globset v0.4.15 [INFO] [stderr] Downloaded axum-macros v0.4.2 [INFO] [stderr] Downloaded bstr v1.11.0 [INFO] [stderr] Downloaded tower v0.5.1 [INFO] [stderr] Downloaded lettre v0.11.10 [INFO] [stderr] Downloaded rusqlite v0.32.1 [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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e4cec512e81815ce215209efec3e08a8884605cb46be5a0a3905b10c5747655 [INFO] running `Command { std: "docker" "start" "-a" "3e4cec512e81815ce215209efec3e08a8884605cb46be5a0a3905b10c5747655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e4cec512e81815ce215209efec3e08a8884605cb46be5a0a3905b10c5747655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e4cec512e81815ce215209efec3e08a8884605cb46be5a0a3905b10c5747655", kill_on_drop: false }` [INFO] [stdout] 3e4cec512e81815ce215209efec3e08a8884605cb46be5a0a3905b10c5747655 [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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f71095fad693b8855a0bbd6a45dae7822f4473f8679d57ccc75068496550247 [INFO] running `Command { std: "docker" "start" "-a" "6f71095fad693b8855a0bbd6a45dae7822f4473f8679d57ccc75068496550247", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling libc v0.2.166 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling allocator-api2 v0.2.20 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling bstr v1.11.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling deunicode v1.6.0 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling slug v0.1.6 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling psm v0.1.24 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling hostname v0.4.0 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling email-encoding v0.3.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling email_address v0.2.9 [INFO] [stderr] Compiling quoted_printable v0.5.1 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling globset v0.4.15 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling chumsky v0.9.3 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Compiling hyper v1.5.1 [INFO] [stderr] Compiling tower v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling rusqlite v0.32.1 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling lettre v0.11.10 [INFO] [stderr] Compiling tokio-rusqlite v0.6.0 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling axum-extra v0.9.6 [INFO] [stderr] Compiling central-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `axum::response::AppendHeaders` [INFO] [stdout] --> src/utils/session/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::response::AppendHeaders; [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: `cookie::Cookie` [INFO] [stdout] --> src/utils/session/mod.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use axum_extra::extract::{cookie::Cookie, PrivateCookieJar}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/utils/session/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `database::user::User` and `utils::app_state::AppState` [INFO] [stdout] --> src/utils/session/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{database::user::User, utils::app_state::AppState}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/utils/email.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `iter` [INFO] [stdout] --> src/api/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/api/mod.rs:3:54 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{middleware::from_fn_with_state, routing::{delete, put}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::session::Permission` [INFO] [stdout] --> src/api/mod.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{middleware::auth::admin_required, router_prelude::*, utils::session::Permission}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `WARNING_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/api/response.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | WARNING_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WarningSuccess` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Router` [INFO] [stdout] --> src/admin/guard.rs:2:61 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::{extract::FromRequestParts, http::request::Parts, Router}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `session::session_signature_from_cookies` [INFO] [stdout] --> src/admin/guard.rs:5:62 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::{app_error::AppError, app_state::AppState, session::session_signature_from_cookies}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/admin/login.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/admin/login.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntoMapRequestResult`, `IntoResponse`, and `StatusCode` [INFO] [stdout] --> src/middleware/auth.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | body::Body, extract::State, http::{Request, StatusCode}, middleware::{IntoMapRequestResult, Next}, response::{IntoResponse, Response} [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/middleware/auth.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/private/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/private/auth.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/private/auth.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use tracing::{error, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `session::Permission` [INFO] [stdout] --> src/database/user/schema.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::{app_state::tables::Table, session::Permission}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `NaiveDateTime` [INFO] [stdout] --> src/database/user/mod.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `prelude::AppError` and `utils::session::Permission` [INFO] [stdout] --> src/database/account/test.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{prelude::AppError, utils::session::Permission}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/database/account/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::params` [INFO] [stdout] --> src/database/account/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rusqlite::params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::tempdir` [INFO] [stdout] --> src/database/account/test.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_rusqlite::Connection` [INFO] [stdout] --> src/database/account/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_rusqlite::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/database/experiment/cache.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{BTreeMap, HashMap}, path::PathBuf, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/api/user.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | todo!("Ensure user requesting is superadmin or self"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 53 | todo!("Check password update rate limit"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::panic` which comes from the expansion of the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_state` [INFO] [stdout] --> src/api/user.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn update_password(State(app_state): State, Path(username): Path, Json(password): Json) -> Result src/api/user.rs:49:70 [INFO] [stdout] | [INFO] [stdout] 49 | ...te): State, Path(username): Path, Json(password): Json) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashed_new_pwd` [INFO] [stdout] --> src/api/user.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let hashed_new_pwd = utils::cryptography::hash(password).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashed_new_pwd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/admin/login.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/database/experiment/cache.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_data(&self, id: u64) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_data(&self, _id: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `SESSION_DURATION` [INFO] [stdout] | [INFO] [stdout] 50 - pub fn get_data(&self, id: u64) -> Result { [INFO] [stdout] 50 + pub fn get_data(&self, utils::session::SESSION_DURATION: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/database/experiment/cache.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | if let Some(id) = cache.get(&expt.metadata.experiment_id) { [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/database/experiment/cache.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn delete_experiment(&mut self, id: u64) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 71 | pub fn delete_experiment(&mut self, _id: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `SESSION_DURATION` [INFO] [stdout] | [INFO] [stdout] 71 - pub fn delete_experiment(&mut self, id: u64) -> Result { [INFO] [stdout] 71 + pub fn delete_experiment(&mut self, utils::session::SESSION_DURATION: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `anon_session_db` is never read [INFO] [stdout] --> src/utils/app_state/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | anon_session_db: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email` and `token` are never read [INFO] [stdout] --> src/utils/app_state/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct PwdResetToken { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 32 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `drop_table` is never used [INFO] [stdout] --> src/utils/app_state/tables.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Table { [INFO] [stdout] | ----- associated function in this trait [INFO] [stdout] 7 | fn create_table() -> String; [INFO] [stdout] 8 | fn drop_table() -> String; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mock_setup` is never used [INFO] [stdout] --> src/utils/app_state/tables.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn mock_setup() -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_permissions` is never used [INFO] [stdout] --> src/utils/session/state_handling.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 11 | impl AppState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | async fn validate_permissions(&self, user: &User, acls: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnonSession` is never constructed [INFO] [stdout] --> src/utils/session/anon_handling.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AnonSession { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_password_reset_handler` is never used [INFO] [stdout] --> src/utils/email.rs:129:14 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn validate_password_reset_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `experiment_file_upload` is never used [INFO] [stdout] --> src/api/experiment.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn experiment_file_upload() -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogoutForm` is never constructed [INFO] [stdout] --> src/admin/login.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct LogoutForm { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `access_code` is never read [INFO] [stdout] --> src/private/auth.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct RegisterForm { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | access_code: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "6f71095fad693b8855a0bbd6a45dae7822f4473f8679d57ccc75068496550247", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f71095fad693b8855a0bbd6a45dae7822f4473f8679d57ccc75068496550247", kill_on_drop: false }` [INFO] [stdout] 6f71095fad693b8855a0bbd6a45dae7822f4473f8679d57ccc75068496550247 [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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a1fbbbc601a0bd82efa16d50092b753c272c3d907ed70578231ee669be733f9 [INFO] running `Command { std: "docker" "start" "-a" "1a1fbbbc601a0bd82efa16d50092b753c272c3d907ed70578231ee669be733f9", kill_on_drop: false }` [INFO] [stderr] Compiling central-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `axum::response::AppendHeaders` [INFO] [stdout] --> src/utils/session/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::response::AppendHeaders; [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: `cookie::Cookie` [INFO] [stdout] --> src/utils/session/mod.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use axum_extra::extract::{cookie::Cookie, PrivateCookieJar}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/utils/session/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `database::user::User` and `utils::app_state::AppState` [INFO] [stdout] --> src/utils/session/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{database::user::User, utils::app_state::AppState}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/utils/email.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `iter` [INFO] [stdout] --> src/api/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/api/mod.rs:3:54 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{middleware::from_fn_with_state, routing::{delete, put}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::session::Permission` [INFO] [stdout] --> src/api/mod.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{middleware::auth::admin_required, router_prelude::*, utils::session::Permission}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `WARNING_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/api/response.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | WARNING_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WarningSuccess` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Router` [INFO] [stdout] --> src/admin/guard.rs:2:61 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::{extract::FromRequestParts, http::request::Parts, Router}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `session::session_signature_from_cookies` [INFO] [stdout] --> src/admin/guard.rs:5:62 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::{app_error::AppError, app_state::AppState, session::session_signature_from_cookies}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/admin/login.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/admin/login.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntoMapRequestResult`, `IntoResponse`, and `StatusCode` [INFO] [stdout] --> src/middleware/auth.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | body::Body, extract::State, http::{Request, StatusCode}, middleware::{IntoMapRequestResult, Next}, response::{IntoResponse, Response} [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/middleware/auth.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/private/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/private/auth.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/private/auth.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use tracing::{error, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `session::Permission` [INFO] [stdout] --> src/database/user/schema.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::{app_state::tables::Table, session::Permission}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::tempdir` [INFO] [stdout] --> src/database/user/tests.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_rusqlite::Connection` [INFO] [stdout] --> src/database/user/tests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_rusqlite::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `NaiveDateTime` [INFO] [stdout] --> src/database/user/mod.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `prelude::AppError` and `utils::session::Permission` [INFO] [stdout] --> src/database/account/test.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{prelude::AppError, utils::session::Permission}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/database/account/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::params` [INFO] [stdout] --> src/database/account/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rusqlite::params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::tempdir` [INFO] [stdout] --> src/database/account/test.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_rusqlite::Connection` [INFO] [stdout] --> src/database/account/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_rusqlite::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/database/experiment/cache.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{BTreeMap, HashMap}, path::PathBuf, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/api/user.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | todo!("Ensure user requesting is superadmin or self"); [INFO] [stdout] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 53 | todo!("Check password update rate limit"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::panic` which comes from the expansion of the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_state` [INFO] [stdout] --> src/api/user.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn update_password(State(app_state): State, Path(username): Path, Json(password): Json) -> Result src/api/user.rs:49:70 [INFO] [stdout] | [INFO] [stdout] 49 | ...te): State, Path(username): Path, Json(password): Json) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashed_new_pwd` [INFO] [stdout] --> src/api/user.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let hashed_new_pwd = utils::cryptography::hash(password).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashed_new_pwd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/admin/login.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/database/experiment/cache.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_data(&self, id: u64) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_data(&self, _id: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `SESSION_DURATION` [INFO] [stdout] | [INFO] [stdout] 50 - pub fn get_data(&self, id: u64) -> Result { [INFO] [stdout] 50 + pub fn get_data(&self, utils::session::SESSION_DURATION: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/database/experiment/cache.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | if let Some(id) = cache.get(&expt.metadata.experiment_id) { [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/database/experiment/cache.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn delete_experiment(&mut self, id: u64) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 71 | pub fn delete_experiment(&mut self, _id: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `SESSION_DURATION` [INFO] [stdout] | [INFO] [stdout] 71 - pub fn delete_experiment(&mut self, id: u64) -> Result { [INFO] [stdout] 71 + pub fn delete_experiment(&mut self, utils::session::SESSION_DURATION: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `anon_session_db` is never read [INFO] [stdout] --> src/utils/app_state/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | anon_session_db: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email` and `token` are never read [INFO] [stdout] --> src/utils/app_state/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct PwdResetToken { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 32 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_permissions` is never used [INFO] [stdout] --> src/utils/session/state_handling.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 11 | impl AppState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | async fn validate_permissions(&self, user: &User, acls: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnonSession` is never constructed [INFO] [stdout] --> src/utils/session/anon_handling.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AnonSession { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_password_reset_handler` is never used [INFO] [stdout] --> src/utils/email.rs:129:14 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn validate_password_reset_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `experiment_file_upload` is never used [INFO] [stdout] --> src/api/experiment.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn experiment_file_upload() -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogoutForm` is never constructed [INFO] [stdout] --> src/admin/login.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct LogoutForm { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `access_code` is never read [INFO] [stdout] --> src/private/auth.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct RegisterForm { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | access_code: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.52s [INFO] running `Command { std: "docker" "inspect" "1a1fbbbc601a0bd82efa16d50092b753c272c3d907ed70578231ee669be733f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a1fbbbc601a0bd82efa16d50092b753c272c3d907ed70578231ee669be733f9", kill_on_drop: false }` [INFO] [stdout] 1a1fbbbc601a0bd82efa16d50092b753c272c3d907ed70578231ee669be733f9 [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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e2f65f997ff94188014286884c6ecd54e74c7c30443d71ece65d35cb28b0637d [INFO] running `Command { std: "docker" "start" "-a" "e2f65f997ff94188014286884c6ecd54e74c7c30443d71ece65d35cb28b0637d", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `axum::response::AppendHeaders` [INFO] [stderr] --> src/utils/session/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use axum::response::AppendHeaders; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `cookie::Cookie` [INFO] [stderr] --> src/utils/session/mod.rs:2:27 [INFO] [stderr] | [INFO] [stderr] 2 | use axum_extra::extract::{cookie::Cookie, PrivateCookieJar}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::prelude::*` [INFO] [stderr] --> src/utils/session/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `database::user::User` and `utils::app_state::AppState` [INFO] [stderr] --> src/utils/session/mod.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::{database::user::User, utils::app_state::AppState}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/utils/email.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `collections::HashMap` and `iter` [INFO] [stderr] --> src/api/mod.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, iter}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `delete` [INFO] [stderr] --> src/api/mod.rs:3:54 [INFO] [stderr] | [INFO] [stderr] 3 | use axum::{middleware::from_fn_with_state, routing::{delete, put}}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::session::Permission` [INFO] [stderr] --> src/api/mod.rs:5:66 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::{middleware::auth::admin_required, router_prelude::*, utils::session::Permission}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `WARNING_SUCCESS` should have an upper camel case name [INFO] [stderr] --> src/api/response.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | WARNING_SUCCESS, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `WarningSuccess` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Router` [INFO] [stderr] --> src/admin/guard.rs:2:61 [INFO] [stderr] | [INFO] [stderr] 2 | use axum::{extract::FromRequestParts, http::request::Parts, Router}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `session::session_signature_from_cookies` [INFO] [stderr] --> src/admin/guard.rs:5:62 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::utils::{app_error::AppError, app_state::AppState, session::session_signature_from_cookies}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/admin/login.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::time::sleep` [INFO] [stderr] --> src/admin/login.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio::time::sleep; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `IntoMapRequestResult`, `IntoResponse`, and `StatusCode` [INFO] [stderr] --> src/middleware/auth.rs:2:49 [INFO] [stderr] | [INFO] [stderr] 2 | body::Body, extract::State, http::{Request, StatusCode}, middleware::{IntoMapRequestResult, Next}, response::{IntoResponse, Response} [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::prelude::*` [INFO] [stderr] --> src/middleware/auth.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/private/auth.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::time::sleep` [INFO] [stderr] --> src/private/auth.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio::time::sleep; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `error` and `warn` [INFO] [stderr] --> src/private/auth.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use tracing::{error, warn}; [INFO] [stderr] | ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `session::Permission` [INFO] [stderr] --> src/database/user/schema.rs:1:46 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::utils::{app_state::tables::Table, session::Permission}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tempfile::tempdir` [INFO] [stderr] --> src/database/user/tests.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use tempfile::tempdir; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_rusqlite::Connection` [INFO] [stderr] --> src/database/user/tests.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio_rusqlite::Connection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime` and `NaiveDateTime` [INFO] [stderr] --> src/database/user/mod.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use chrono::{DateTime, NaiveDateTime}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `prelude::AppError` and `utils::session::Permission` [INFO] [stderr] --> src/database/account/test.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{prelude::AppError, utils::session::Permission}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/database/account/test.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rusqlite::params` [INFO] [stderr] --> src/database/account/test.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rusqlite::params; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tempfile::tempdir` [INFO] [stderr] --> src/database/account/test.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use tempfile::tempdir; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_rusqlite::Connection` [INFO] [stderr] --> src/database/account/test.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use tokio_rusqlite::Connection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HashMap` [INFO] [stderr] --> src/database/experiment/cache.rs:1:35 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::{BTreeMap, HashMap}, path::PathBuf, sync::{Arc, Mutex}}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/api/user.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 52 | todo!("Ensure user requesting is superadmin or self"); [INFO] [stderr] | ----------------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 53 | todo!("Check password update rate limit"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::panic` which comes from the expansion of the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app_state` [INFO] [stderr] --> src/api/user.rs:49:36 [INFO] [stderr] | [INFO] [stderr] 49 | pub async fn update_password(State(app_state): State, Path(username): Path, Json(password): Json) -> Result src/api/user.rs:49:70 [INFO] [stderr] | [INFO] [stderr] 49 | ...te): State, Path(username): Path, Json(password): Json) -> Result, AppError> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hashed_new_pwd` [INFO] [stderr] --> src/api/user.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | let hashed_new_pwd = utils::cryptography::hash(password).await?; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashed_new_pwd` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/admin/login.rs:53:13 [INFO] [stderr] | [INFO] [stderr] 53 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/database/experiment/cache.rs:50:28 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn get_data(&self, id: u64) -> Result { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 50 | pub fn get_data(&self, _id: u64) -> Result { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `SESSION_DURATION` [INFO] [stderr] | [INFO] [stderr] 50 - pub fn get_data(&self, id: u64) -> Result { [INFO] [stderr] 50 + pub fn get_data(&self, utils::session::SESSION_DURATION: u64) -> Result { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/database/experiment/cache.rs:64:21 [INFO] [stderr] | [INFO] [stderr] 64 | if let Some(id) = cache.get(&expt.metadata.experiment_id) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/database/experiment/cache.rs:71:41 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn delete_experiment(&mut self, id: u64) -> Result { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 71 | pub fn delete_experiment(&mut self, _id: u64) -> Result { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `SESSION_DURATION` [INFO] [stderr] | [INFO] [stderr] 71 - pub fn delete_experiment(&mut self, id: u64) -> Result { [INFO] [stderr] 71 + pub fn delete_experiment(&mut self, utils::session::SESSION_DURATION: u64) -> Result { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `anon_session_db` is never read [INFO] [stderr] --> src/utils/app_state/mod.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct AppState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 23 | anon_session_db: Arc>>, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `email` and `token` are never read [INFO] [stderr] --> src/utils/app_state/mod.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct PwdResetToken { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 32 | email: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 33 | token: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `validate_permissions` is never used [INFO] [stderr] --> src/utils/session/state_handling.rs:87:14 [INFO] [stderr] | [INFO] [stderr] 11 | impl AppState { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 87 | async fn validate_permissions(&self, user: &User, acls: Vec) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AnonSession` is never constructed [INFO] [stderr] --> src/utils/session/anon_handling.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct AnonSession { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `validate_password_reset_handler` is never used [INFO] [stderr] --> src/utils/email.rs:129:14 [INFO] [stderr] | [INFO] [stderr] 129 | pub async fn validate_password_reset_handler( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `experiment_file_upload` is never used [INFO] [stderr] --> src/api/experiment.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | pub async fn experiment_file_upload() -> Result, AppError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `LogoutForm` is never constructed [INFO] [stderr] --> src/admin/login.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct LogoutForm { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `access_code` is never read [INFO] [stderr] --> src/private/auth.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct RegisterForm { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 36 | access_code: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RegisterForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `central-server` (bin "central-server" test) generated 44 warnings (run `cargo fix --bin "central-server" --tests` to apply 29 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/central_server-7183ad4a63e5fbc1) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test database::user::tests::duplicate_user ... FAILED [INFO] [stdout] test database::user::tests::password_update_rate_limit ... FAILED [INFO] [stdout] test database::user::tests::no_user ... FAILED [INFO] [stdout] test database::user::tests::full ... FAILED [INFO] [stdout] test utils::cryptography::test::test_salt ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- database::user::tests::duplicate_user stdout ---- [INFO] [stdout] Error: Rusqlite(SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("table users has no column named password_update_log"))) [INFO] [stdout] [INFO] [stdout] ---- database::user::tests::password_update_rate_limit stdout ---- [INFO] [stdout] Error: Rusqlite(SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("table users has no column named password_update_log"))) [INFO] [stdout] [INFO] [stdout] ---- database::user::tests::no_user stdout ---- [INFO] [stdout] [src/database/user/tests.rs:110:5] &user = Err( [INFO] [stdout] Rusqlite( [INFO] [stdout] SqlInputError { [INFO] [stdout] error: Error { [INFO] [stdout] code: Unknown, [INFO] [stdout] extended_code: 1, [INFO] [stdout] }, [INFO] [stdout] msg: "no such column: password_update_log", [INFO] [stdout] sql: "SELECT username, hashed_pwd, permissions, password_update_log FROM users WHERE username = ?1", [INFO] [stdout] offset: 42, [INFO] [stdout] }, [INFO] [stdout] ), [INFO] [stdout] ) [INFO] [stdout] [INFO] [stdout] thread 'database::user::tests::no_user' (26) panicked at src/database/user/tests.rs:111:5: [INFO] [stdout] assertion failed: user.is_ok() [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x556125dadce2 - std::backtrace_rs::backtrace::libunwind::trace::h52580dd202462214 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x556125dadce2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc969519abce0f52b [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x556125dadce2 - std::sys::backtrace::_print_fmt::hfd5825900b6e0030 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x556125dadce2 - ::fmt::h427144ad75cfb218 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x556125dbf67f - core::fmt::rt::Argument::fmt::hd5ccc9cf97cea7f7 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x556125dbf67f - core::fmt::write::h593aaf5adf0f5dae [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x556125d79ad1 - std::io::default_write_fmt::h305b5a0727055346 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x556125d79ad1 - std::io::Write::write_fmt::h76f14a8a88733dc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x556125d86542 - std::sys::backtrace::BacktraceLock::print::h3953113552dca3ca [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x556125d8b7bf - std::panicking::default_hook::{{closure}}::h486b96ad75eafbb8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x556125d8b651 - std::panicking::default_hook::h99456317c5a1a20c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x556125a514fe - as core::ops::function::Fn>::call::h441e4551014e4cf8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x556125a514fe - test::test_main_with_exit_callback::{{closure}}::hdbca54e17f1a00e4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x556125d8bf2f - as core::ops::function::Fn>::call::h1e57b72c4e1d3045 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x556125d8bf2f - std::panicking::panic_with_hook::h67ab0df20212e4ea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x556125d8bca6 - std::panicking::panic_handler::{{closure}}::hc9e4a933ae92e208 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:700:13 [INFO] [stdout] 16: 0x556125d86689 - std::sys::backtrace::__rust_end_short_backtrace::hbfa72df9b68c2d19 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x556125d6d7ed - __rustc[8cce077e14951490]::rust_begin_unwind [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x556125dc7670 - core::panicking::panic_fmt::h49931053d20abf41 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x556125dc764c - core::panicking::panic::h5b3f22493728bee0 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panicking.rs:145:5 [INFO] [stdout] 20: 0x556125a24a79 - central_server::database::user::tests::no_user::{{closure}}::h801c2ba496b47f5c [INFO] [stdout] at /opt/rustwide/workdir/src/database/user/tests.rs:111:5 [INFO] [stdout] 21: 0x5561259f9b2f - as core::future::future::Future>::poll::h3849094a52ef2cc1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/future/future.rs:133:9 [INFO] [stdout] 22: 0x5561259f9c4b - as core::future::future::Future>::poll::hf2d01b7ba6c29df1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/future/future.rs:133:9 [INFO] [stdout] 23: 0x5561259f0b2b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::hf668e5ea8f30c7eb [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:729:73 [INFO] [stdout] 24: 0x5561259f09eb - tokio::runtime::coop::with_budget::h1ac943f44713fcaa [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/coop.rs:107:5 [INFO] [stdout] 25: 0x5561259f09eb - tokio::runtime::coop::budget::hcf8e4aa6b02aab9e [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/coop.rs:73:5 [INFO] [stdout] 26: 0x5561259f09eb - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h8de2bf075f9096c0 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:729:25 [INFO] [stdout] 27: 0x5561259ed7ed - tokio::runtime::scheduler::current_thread::Context::enter::h79904c5437f546cb [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:428:19 [INFO] [stdout] 28: 0x5561259efe20 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h7b7ef827b4f4479e [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:728:44 [INFO] [stdout] 29: 0x5561259eeefb - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h332adfb3128bd953 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:807:68 [INFO] [stdout] 30: 0x556125a0d9ca - tokio::runtime::context::scoped::Scoped::set::h75109a2e6369269a [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 31: 0x556125a0d55a - tokio::runtime::context::set_scheduler::{{closure}}::h52666c1dc07e0e58 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context.rs:180:38 [INFO] [stdout] 32: 0x556125a0abb1 - std::thread::local::LocalKey::try_with::h145cf36189ec2b92 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/local.rs:315:12 [INFO] [stdout] 33: 0x556125a0a8cc - std::thread::local::LocalKey::with::h86fed83bdadf0319 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/local.rs:279:20 [INFO] [stdout] 34: 0x556125a0d4b1 - tokio::runtime::context::set_scheduler::h0b9843941a8a5dba [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context.rs:180:17 [INFO] [stdout] 35: 0x5561259ee7ee - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h6b49c39cda95c92b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:807:27 [INFO] [stdout] 36: 0x5561259eef68 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h92280dc917fa5ae1 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:716:24 [INFO] [stdout] 37: 0x5561259ecb92 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h5886047fad088606 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:196:33 [INFO] [stdout] 38: 0x556125a2db51 - tokio::runtime::context::runtime::enter_runtime::h0166123034510702 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 39: 0x5561259ec856 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h33f576f75fb68471 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:184:9 [INFO] [stdout] 40: 0x556125a28698 - tokio::runtime::runtime::Runtime::block_on_inner::h6d6b9e1b108be681 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/runtime.rs:368:52 [INFO] [stdout] 41: 0x556125a2899f - tokio::runtime::runtime::Runtime::block_on::h46f255a824e88a66 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/runtime.rs:342:18 [INFO] [stdout] 42: 0x556125a2435d - central_server::database::user::tests::no_user::h6adf97054e239487 [INFO] [stdout] at /opt/rustwide/workdir/src/database/user/tests.rs:113:7 [INFO] [stdout] 43: 0x556125a243fc - central_server::database::user::tests::no_user::{{closure}}::h718d0f2dcfe15233 [INFO] [stdout] at /opt/rustwide/workdir/src/database/user/tests.rs:107:23 [INFO] [stdout] 44: 0x5561259dcb76 - core::ops::function::FnOnce::call_once::he7814eb72d06f65a [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x556125a512bb - core::ops::function::FnOnce::call_once::h5d9016d521f5aee4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 46: 0x556125a512bb - test::__rust_begin_short_backtrace::h123fcee610330442 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:663:18 [INFO] [stdout] 47: 0x556125a66da5 - test::run_test_in_process::{{closure}}::h0442efda2e6359b2 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:74 [INFO] [stdout] 48: 0x556125a66da5 - as core::ops::function::FnOnce<()>>::call_once::hfe3528c8dd09682c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 49: 0x556125a66da5 - std::panicking::catch_unwind::do_call::hb1659f7844fe8531 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 50: 0x556125a66da5 - std::panicking::catch_unwind::hdc1f4be0019e72ad [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 51: 0x556125a66da5 - std::panic::catch_unwind::hd6d7ccfa4513e770 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 52: 0x556125a66da5 - test::run_test_in_process::h6bbb839ed0802366 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:27 [INFO] [stdout] 53: 0x556125a66da5 - test::run_test::{{closure}}::he4fad7398c8acc11 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:607:43 [INFO] [stdout] 54: 0x556125a3d714 - test::run_test::{{closure}}::h41975797e198d26c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:637:41 [INFO] [stdout] 55: 0x556125a3d714 - std::sys::backtrace::__rust_begin_short_backtrace::hfb46c397857336f1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 56: 0x556125a410ba - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hddf826a64f532bea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 57: 0x556125a410ba - as core::ops::function::FnOnce<()>>::call_once::hc3518c3eab91aeb3 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 58: 0x556125a410ba - std::panicking::catch_unwind::do_call::h7bf3ad6dc012415a [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 59: 0x556125a410ba - std::panicking::catch_unwind::h8b88f0375c767e36 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 60: 0x556125a410ba - std::panic::catch_unwind::h66cb5d61a90f7bc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 61: 0x556125a410ba - std::thread::Builder::spawn_unchecked_::{{closure}}::h65bc9d15fb966bbd [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 62: 0x556125a410ba - core::ops::function::FnOnce::call_once{{vtable.shim}}::he8d2c9a8796342e5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 63: 0x556125d806ff - as core::ops::function::FnOnce>::call_once::hef12b47e5c033835 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 64: 0x556125d806ff - std::sys::pal::unix::thread::Thread::new::thread_start::h135087e7c97657bc [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 65: 0x7c06f3ceeaa4 - [INFO] [stdout] 66: 0x7c06f3d7ba34 - clone [INFO] [stdout] 67: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- database::user::tests::full stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'database::user::tests::full' (25) panicked at src/database/user/tests.rs:22:30: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Rusqlite(SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("table users has no column named password_update_log"))) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x556125dadce2 - std::backtrace_rs::backtrace::libunwind::trace::h52580dd202462214 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x556125dadce2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc969519abce0f52b [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x556125dadce2 - std::sys::backtrace::_print_fmt::hfd5825900b6e0030 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x556125dadce2 - ::fmt::h427144ad75cfb218 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x556125dbf67f - core::fmt::rt::Argument::fmt::hd5ccc9cf97cea7f7 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x556125dbf67f - core::fmt::write::h593aaf5adf0f5dae [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x556125d79ad1 - std::io::default_write_fmt::h305b5a0727055346 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x556125d79ad1 - std::io::Write::write_fmt::h76f14a8a88733dc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x556125d86542 - std::sys::backtrace::BacktraceLock::print::h3953113552dca3ca [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x556125d8b7bf - std::panicking::default_hook::{{closure}}::h486b96ad75eafbb8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x556125d8b651 - std::panicking::default_hook::h99456317c5a1a20c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x556125a514fe - as core::ops::function::Fn>::call::h441e4551014e4cf8 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x556125a514fe - test::test_main_with_exit_callback::{{closure}}::hdbca54e17f1a00e4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x556125d8bf2f - as core::ops::function::Fn>::call::h1e57b72c4e1d3045 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x556125d8bf2f - std::panicking::panic_with_hook::h67ab0df20212e4ea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x556125d8bcda - std::panicking::panic_handler::{{closure}}::hc9e4a933ae92e208 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x556125d86689 - std::sys::backtrace::__rust_end_short_backtrace::hbfa72df9b68c2d19 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x556125d6d7ed - __rustc[8cce077e14951490]::rust_begin_unwind [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x556125dc7670 - core::panicking::panic_fmt::h49931053d20abf41 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x556125dc6b76 - core::result::unwrap_failed::h7f5a2d4cf85d933f [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/result.rs:1854:5 [INFO] [stdout] 20: 0x556125a21994 - core::result::Result::unwrap::h7f6195e12c33c12a [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/result.rs:1225:23 [INFO] [stdout] 21: 0x556125a21994 - central_server::database::user::tests::full::{{closure}}::h81b15e7780c521bc [INFO] [stdout] at /opt/rustwide/workdir/src/database/user/tests.rs:22:30 [INFO] [stdout] 22: 0x5561259f9b2f - as core::future::future::Future>::poll::h3849094a52ef2cc1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/future/future.rs:133:9 [INFO] [stdout] 23: 0x5561259f9c4b - as core::future::future::Future>::poll::hf2d01b7ba6c29df1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/future/future.rs:133:9 [INFO] [stdout] 24: 0x5561259f0b2b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::hf668e5ea8f30c7eb [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:729:73 [INFO] [stdout] 25: 0x5561259f09eb - tokio::runtime::coop::with_budget::h1ac943f44713fcaa [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/coop.rs:107:5 [INFO] [stdout] 26: 0x5561259f09eb - tokio::runtime::coop::budget::hcf8e4aa6b02aab9e [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/coop.rs:73:5 [INFO] [stdout] 27: 0x5561259f09eb - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h8de2bf075f9096c0 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:729:25 [INFO] [stdout] 28: 0x5561259ed7ed - tokio::runtime::scheduler::current_thread::Context::enter::h79904c5437f546cb [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:428:19 [INFO] [stdout] 29: 0x5561259efe20 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h7b7ef827b4f4479e [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:728:44 [INFO] [stdout] 30: 0x5561259eeefb - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h332adfb3128bd953 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:807:68 [INFO] [stdout] 31: 0x556125a0d9ca - tokio::runtime::context::scoped::Scoped::set::h75109a2e6369269a [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 32: 0x556125a0d55a - tokio::runtime::context::set_scheduler::{{closure}}::h52666c1dc07e0e58 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context.rs:180:38 [INFO] [stdout] 33: 0x556125a0abb1 - std::thread::local::LocalKey::try_with::h145cf36189ec2b92 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/local.rs:315:12 [INFO] [stdout] 34: 0x556125a0a8cc - std::thread::local::LocalKey::with::h86fed83bdadf0319 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/local.rs:279:20 [INFO] [stdout] 35: 0x556125a0d4b1 - tokio::runtime::context::set_scheduler::h0b9843941a8a5dba [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context.rs:180:17 [INFO] [stdout] 36: 0x5561259ee7ee - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h6b49c39cda95c92b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:807:27 [INFO] [stdout] 37: 0x5561259eef68 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h92280dc917fa5ae1 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:716:24 [INFO] [stdout] 38: 0x5561259ecb92 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h5886047fad088606 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:196:33 [INFO] [stdout] 39: 0x556125a2db51 - tokio::runtime::context::runtime::enter_runtime::h0166123034510702 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 40: 0x5561259ec856 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h33f576f75fb68471 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/scheduler/current_thread/mod.rs:184:9 [INFO] [stdout] 41: 0x556125a28698 - tokio::runtime::runtime::Runtime::block_on_inner::h6d6b9e1b108be681 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/runtime.rs:368:52 [INFO] [stdout] 42: 0x556125a2899f - tokio::runtime::runtime::Runtime::block_on::h46f255a824e88a66 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.41.1/src/runtime/runtime.rs:342:18 [INFO] [stdout] 43: 0x556125a20e80 - central_server::database::user::tests::full::h7f40e8b5aecc9a43 [INFO] [stdout] at /opt/rustwide/workdir/src/database/user/tests.rs:102:7 [INFO] [stdout] 44: 0x556125a20f2c - central_server::database::user::tests::full::{{closure}}::h0c2a9a077a6dc9c6 [INFO] [stdout] at /opt/rustwide/workdir/src/database/user/tests.rs:11:20 [INFO] [stdout] 45: 0x5561259dc6c6 - core::ops::function::FnOnce::call_once::h4bf9ec4ffdc2b988 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 46: 0x556125a512bb - core::ops::function::FnOnce::call_once::h5d9016d521f5aee4 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 47: 0x556125a512bb - test::__rust_begin_short_backtrace::h123fcee610330442 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:663:18 [INFO] [stdout] 48: 0x556125a66da5 - test::run_test_in_process::{{closure}}::h0442efda2e6359b2 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:74 [INFO] [stdout] 49: 0x556125a66da5 - as core::ops::function::FnOnce<()>>::call_once::hfe3528c8dd09682c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 50: 0x556125a66da5 - std::panicking::catch_unwind::do_call::hb1659f7844fe8531 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 51: 0x556125a66da5 - std::panicking::catch_unwind::hdc1f4be0019e72ad [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 52: 0x556125a66da5 - std::panic::catch_unwind::hd6d7ccfa4513e770 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 53: 0x556125a66da5 - test::run_test_in_process::h6bbb839ed0802366 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:686:27 [INFO] [stdout] 54: 0x556125a66da5 - test::run_test::{{closure}}::he4fad7398c8acc11 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:607:43 [INFO] [stdout] 55: 0x556125a3d714 - test::run_test::{{closure}}::h41975797e198d26c [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/test/src/lib.rs:637:41 [INFO] [stdout] 56: 0x556125a3d714 - std::sys::backtrace::__rust_begin_short_backtrace::hfb46c397857336f1 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 57: 0x556125a410ba - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hddf826a64f532bea [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 58: 0x556125a410ba - as core::ops::function::FnOnce<()>>::call_once::hc3518c3eab91aeb3 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 59: 0x556125a410ba - std::panicking::catch_unwind::do_call::h7bf3ad6dc012415a [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:590:40 [INFO] [stdout] 60: 0x556125a410ba - std::panicking::catch_unwind::h8b88f0375c767e36 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panicking.rs:553:19 [INFO] [stdout] 61: 0x556125a410ba - std::panic::catch_unwind::h66cb5d61a90f7bc5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/panic.rs:359:14 [INFO] [stdout] 62: 0x556125a410ba - std::thread::Builder::spawn_unchecked_::{{closure}}::h65bc9d15fb966bbd [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 63: 0x556125a410ba - core::ops::function::FnOnce::call_once{{vtable.shim}}::he8d2c9a8796342e5 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 64: 0x556125d806ff - as core::ops::function::FnOnce>::call_once::hef12b47e5c033835 [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 65: 0x556125d806ff - std::sys::pal::unix::thread::Thread::new::thread_start::h135087e7c97657bc [INFO] [stdout] at /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 66: 0x7c06f3ceeaa4 - [INFO] [stdout] 67: 0x7c06f3d7ba34 - clone [INFO] [stdout] 68: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] database::user::tests::duplicate_user [INFO] [stdout] database::user::tests::full [INFO] [stdout] database::user::tests::no_user [INFO] [stdout] database::user::tests::password_update_rate_limit [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.65s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin central-server` [INFO] running `Command { std: "docker" "inspect" "e2f65f997ff94188014286884c6ecd54e74c7c30443d71ece65d35cb28b0637d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2f65f997ff94188014286884c6ecd54e74c7c30443d71ece65d35cb28b0637d", kill_on_drop: false }` [INFO] [stdout] e2f65f997ff94188014286884c6ecd54e74c7c30443d71ece65d35cb28b0637d