[INFO] cloning repository https://github.com/ctkai01/examination_app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ctkai01/examination_app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctkai01%2Fexamination_app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctkai01%2Fexamination_app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c25fc7cdb0acc1dda06c6f33e86f4fd43f55788 [INFO] testing ctkai01/examination_app/5c25fc7cdb0acc1dda06c6f33e86f4fd43f55788 against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctkai01%2Fexamination_app" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ctkai01/examination_app on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ctkai01/examination_app [INFO] finished tweaking git repo https://github.com/ctkai01/examination_app [INFO] tweaked toml for git repo https://github.com/ctkai01/examination_app written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ctkai01/examination_app 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" "+beta-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9c66e8a6d8e13fc70529d3a8f2138889bfd548fd65b00dba9bcd8dea4b9ba2f [INFO] running `Command { std: "docker" "start" "-a" "f9c66e8a6d8e13fc70529d3a8f2138889bfd548fd65b00dba9bcd8dea4b9ba2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9c66e8a6d8e13fc70529d3a8f2138889bfd548fd65b00dba9bcd8dea4b9ba2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9c66e8a6d8e13fc70529d3a8f2138889bfd548fd65b00dba9bcd8dea4b9ba2f", kill_on_drop: false }` [INFO] [stdout] f9c66e8a6d8e13fc70529d3a8f2138889bfd548fd65b00dba9bcd8dea4b9ba2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2d0012991dd0a45b15faadf9b0eb26c754a97cea7ba7807926ec9edd5204124a [INFO] running `Command { std: "docker" "start" "-a" "2d0012991dd0a45b15faadf9b0eb26c754a97cea7ba7807926ec9edd5204124a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling gimli v0.27.1 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling tokio v1.24.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling object v0.30.3 [INFO] [stderr] Compiling jobserver v0.1.25 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling unicode-bidi v0.3.9 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling time-macros v0.2.6 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling paste v1.0.11 [INFO] [stderr] Compiling zstd-sys v2.0.5+zstd.1.5.2 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling phf_shared v0.11.1 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling clang-sys v0.26.4 [INFO] [stderr] Compiling bytestring v1.2.0 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling addr2line v0.19.0 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling local-waker v0.1.3 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling phf_generator v0.11.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling brotli-decompressor v2.3.4 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bindgen v0.48.1 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling hashbrown v0.1.8 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling cexpr v0.3.6 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling phf_codegen v0.11.1 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling phf v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling actix-router v0.5.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling chrono-tz-build v0.1.0 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling ahash v0.8.2 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling pq-sys v0.4.7 [INFO] [stderr] Compiling eyre v0.4.3 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling chrono-tz v0.8.1 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.6 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling owo-colors v1.3.0 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling futures-macro v0.3.26 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling actix-web-codegen v4.1.0 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling diesel_derives v2.0.1 [INFO] [stderr] Compiling color-backtrace v0.4.2 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling which v2.0.1 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling gethostname v0.2.3 [INFO] [stderr] Compiling zeroize v1.5.7 [INFO] [stderr] Compiling tracing-error v0.1.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.16 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling color-spantrace v0.1.6 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling color-eyre v0.3.4 [INFO] [stderr] Compiling dotenvy v0.15.6 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling validator v0.10.1 [INFO] [stderr] Compiling diesel v2.0.3 [INFO] [stderr] Compiling validator_derive v0.10.1 [INFO] [stderr] Compiling local-channel v0.1.3 [INFO] [stderr] Compiling futures-executor v0.3.26 [INFO] [stderr] Compiling futures v0.3.26 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling actix-rt v2.7.0 [INFO] [stderr] Compiling actix-server v2.1.1 [INFO] [stderr] Compiling actix-codec v0.5.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling toml v0.5.10 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling jwt v0.16.0 [INFO] [stderr] Compiling tracing-bunyan-formatter v0.3.6 [INFO] [stderr] Compiling jsonwebtoken v8.2.0 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling argonautica v0.2.0 [INFO] [stderr] Compiling actix-http v3.2.2 [INFO] [stderr] Compiling actix-web v4.2.1 [INFO] [stderr] Compiling tracing-actix-web v0.5.1 [INFO] [stderr] Compiling actix-web-httpauth v0.8.0 [INFO] [stderr] Compiling todo-actix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Algorithm` and `errors::Error` [INFO] [stdout] --> src/config/crypto.rs:7:54 [INFO] [stdout] | [INFO] [stdout] 7 | use jsonwebtoken::{DecodingKey, decode, EncodingKey, Algorithm, Validation, Header, encode, errors::Error, TokenData}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PooledConnection` [INFO] [stdout] --> src/config/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use r2d2::{Pool, PooledConnection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, and `NaiveDate` [INFO] [stdout] --> src/models/user.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDate, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/handlers/user.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::{info, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `basic::BasicAuth` [INFO] [stdout] --> src/handlers/auth.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web_httpauth::extractors::{bearer::BearerAuth, basic::BasicAuth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/handlers/auth.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/handlers/user.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | user: AuthenticatedUser, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repository` [INFO] [stdout] --> src/handlers/user.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | repository: UserRepository, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/errors/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | AppError::INVALID_CREDENTIALS => "Invalid username or password provided", [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 25 | AppError::NOT_AUTHORIZED => "Not authorized.", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/errors/mod.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 67 | AppError::INVALID_CREDENTIALS => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 68 | AppError::NOT_AUTHORIZED => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/auth.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AuthenticatedUser(pub String); [INFO] [stdout] | ----------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `AuthenticatedUser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | async fn register(user: web::Form) -> impl Responder { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn test() -> impl Responder { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register` is never used [INFO] [stdout] --> src/main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | async fn register(user: web::Form) -> impl Responder { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cexpr v0.3.6, nom v4.2.3, nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2d0012991dd0a45b15faadf9b0eb26c754a97cea7ba7807926ec9edd5204124a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d0012991dd0a45b15faadf9b0eb26c754a97cea7ba7807926ec9edd5204124a", kill_on_drop: false }` [INFO] [stdout] 2d0012991dd0a45b15faadf9b0eb26c754a97cea7ba7807926ec9edd5204124a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7889447c13f23e26f20178140e8fecf4bebba813f785e474307732eadfa391b [INFO] running `Command { std: "docker" "start" "-a" "f7889447c13f23e26f20178140e8fecf4bebba813f785e474307732eadfa391b", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Algorithm` and `errors::Error` [INFO] [stdout] --> src/config/crypto.rs:7:54 [INFO] [stdout] | [INFO] [stdout] 7 | use jsonwebtoken::{DecodingKey, decode, EncodingKey, Algorithm, Validation, Header, encode, errors::Error, TokenData}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PooledConnection` [INFO] [stdout] --> src/config/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use r2d2::{Pool, PooledConnection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, and `NaiveDate` [INFO] [stdout] --> src/models/user.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDate, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/handlers/user.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::{info, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `basic::BasicAuth` [INFO] [stdout] --> src/handlers/auth.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web_httpauth::extractors::{bearer::BearerAuth, basic::BasicAuth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/handlers/auth.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/handlers/user.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | user: AuthenticatedUser, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repository` [INFO] [stdout] --> src/handlers/user.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | repository: UserRepository, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/errors/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | AppError::INVALID_CREDENTIALS => "Invalid username or password provided", [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 25 | AppError::NOT_AUTHORIZED => "Not authorized.", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/errors/mod.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 67 | AppError::INVALID_CREDENTIALS => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 68 | AppError::NOT_AUTHORIZED => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/auth.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AuthenticatedUser(pub String); [INFO] [stdout] | ----------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `AuthenticatedUser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling todo-actix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | async fn register(user: web::Form) -> impl Responder { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Algorithm` and `errors::Error` [INFO] [stdout] --> src/config/crypto.rs:7:54 [INFO] [stdout] | [INFO] [stdout] 7 | use jsonwebtoken::{DecodingKey, decode, EncodingKey, Algorithm, Validation, Header, encode, errors::Error, TokenData}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PooledConnection` [INFO] [stdout] --> src/config/mod.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use r2d2::{Pool, PooledConnection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, and `NaiveDate` [INFO] [stdout] --> src/models/user.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDate, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/handlers/user.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::{info, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `basic::BasicAuth` [INFO] [stdout] --> src/handlers/auth.rs:2:58 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web_httpauth::extractors::{bearer::BearerAuth, basic::BasicAuth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instrument` [INFO] [stdout] --> src/handlers/auth.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn test() -> impl Responder { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register` is never used [INFO] [stdout] --> src/main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | async fn register(user: web::Form) -> impl Responder { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/handlers/user.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | user: AuthenticatedUser, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repository` [INFO] [stdout] --> src/handlers/user.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | repository: UserRepository, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/errors/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | AppError::INVALID_CREDENTIALS => "Invalid username or password provided", [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 25 | AppError::NOT_AUTHORIZED => "Not authorized.", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/errors/mod.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 67 | AppError::INVALID_CREDENTIALS => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 68 | AppError::NOT_AUTHORIZED => StatusCode::UNAUTHORIZED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/auth.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AuthenticatedUser(pub String); [INFO] [stdout] | ----------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `AuthenticatedUser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.43s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cexpr v0.3.6, nom v4.2.3, nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "f7889447c13f23e26f20178140e8fecf4bebba813f785e474307732eadfa391b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7889447c13f23e26f20178140e8fecf4bebba813f785e474307732eadfa391b", kill_on_drop: false }` [INFO] [stdout] f7889447c13f23e26f20178140e8fecf4bebba813f785e474307732eadfa391b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6b180ac6afb834e0bd45e71bfb0530d30a56b281d04f74e23a7707be568d1abe [INFO] running `Command { std: "docker" "start" "-a" "6b180ac6afb834e0bd45e71bfb0530d30a56b281d04f74e23a7707be568d1abe", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Algorithm` and `errors::Error` [INFO] [stderr] --> src/config/crypto.rs:7:54 [INFO] [stderr] | [INFO] [stderr] 7 | use jsonwebtoken::{DecodingKey, decode, EncodingKey, Algorithm, Validation, Header, encode, errors::Error, TokenData}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `PooledConnection` [INFO] [stderr] --> src/config/mod.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | use r2d2::{Pool, PooledConnection}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime`, `NaiveDateTime`, and `NaiveDate` [INFO] [stderr] --> src/models/user.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDate, NaiveDateTime}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `instrument` [INFO] [stderr] --> src/handlers/user.rs:16:21 [INFO] [stderr] | [INFO] [stderr] 16 | use tracing::{info, instrument}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `basic::BasicAuth` [INFO] [stderr] --> src/handlers/auth.rs:2:58 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web_httpauth::extractors::{bearer::BearerAuth, basic::BasicAuth}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `instrument` [INFO] [stderr] --> src/handlers/auth.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | use tracing::{debug, instrument}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user` [INFO] [stderr] --> src/handlers/user.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | user: AuthenticatedUser, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `repository` [INFO] [stderr] --> src/handlers/user.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | repository: UserRepository, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repository` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/errors/mod.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 24 | AppError::INVALID_CREDENTIALS => "Invalid username or password provided", [INFO] [stderr] | ----------------------------- matches all the relevant values [INFO] [stderr] 25 | AppError::NOT_AUTHORIZED => "Not authorized.", [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/errors/mod.rs:68:13 [INFO] [stderr] | [INFO] [stderr] 67 | AppError::INVALID_CREDENTIALS => StatusCode::UNAUTHORIZED, [INFO] [stderr] | ----------------------------- matches all the relevant values [INFO] [stderr] 68 | AppError::NOT_AUTHORIZED => StatusCode::UNAUTHORIZED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/handlers/auth.rs:10:30 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct AuthenticatedUser(pub String); [INFO] [stderr] | ----------------- ^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `AuthenticatedUser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `todo-actix` (lib) generated 11 warnings (run `cargo fix --lib -p todo-actix` to apply 6 suggestions) [INFO] [stderr] warning: `todo-actix` (lib test) generated 11 warnings (11 duplicates) [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user` [INFO] [stderr] --> src/main.rs:24:19 [INFO] [stderr] | [INFO] [stderr] 24 | async fn register(user: web::Form) -> impl Responder { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `test` is never used [INFO] [stderr] --> src/main.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | async fn test() -> impl Responder { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `register` is never used [INFO] [stderr] --> src/main.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | async fn register(user: web::Form) -> impl Responder { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `todo-actix` (bin "todo-actix" test) generated 4 warnings (run `cargo fix --bin "todo-actix" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cexpr v0.3.6, nom v4.2.3, nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/todo_actix-09542c500541114b) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/todo_actix-1e2755a0f8e53241) [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] [stderr] Doc-tests todo_actix [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" "6b180ac6afb834e0bd45e71bfb0530d30a56b281d04f74e23a7707be568d1abe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b180ac6afb834e0bd45e71bfb0530d30a56b281d04f74e23a7707be568d1abe", kill_on_drop: false }` [INFO] [stdout] 6b180ac6afb834e0bd45e71bfb0530d30a56b281d04f74e23a7707be568d1abe