[INFO] cloning repository https://github.com/eridio/poc_thales_doctolib
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eridio/poc_thales_doctolib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f7c010dff4242ea9353465573ed688077258414e
[INFO] testing eridio/poc_thales_doctolib against beta-2026-04-21 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/eridio/poc_thales_doctolib
[INFO] finished tweaking git repo https://github.com/eridio/poc_thales_doctolib
[INFO] tweaked toml for git repo https://github.com/eridio/poc_thales_doctolib written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/eridio/poc_thales_doctolib on toolchain beta-2026-04-21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/eridio/poc_thales_doctolib 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-2026-04-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9bc65ef8afe465aeb1216217c84bcd81095eda97febb45ee8d26dd9c4a1764b5
[INFO] running `Command { std: "docker" "start" "-a" "9bc65ef8afe465aeb1216217c84bcd81095eda97febb45ee8d26dd9c4a1764b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9bc65ef8afe465aeb1216217c84bcd81095eda97febb45ee8d26dd9c4a1764b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9bc65ef8afe465aeb1216217c84bcd81095eda97febb45ee8d26dd9c4a1764b5", kill_on_drop: false }`
[INFO] [stdout] 9bc65ef8afe465aeb1216217c84bcd81095eda97febb45ee8d26dd9c4a1764b5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4393adfc116eb96fff4bc68ba17bff66fdfd4780107f6724cb253be3541a6469
[INFO] running `Command { std: "docker" "start" "-a" "4393adfc116eb96fff4bc68ba17bff66fdfd4780107f6724cb253be3541a6469", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.39
[INFO] [stderr]    Compiling unicode-ident v1.0.0
[INFO] [stderr]    Compiling syn v1.0.95
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling pin-project-lite v0.2.9
[INFO] [stderr]    Compiling slab v0.4.6
[INFO] [stderr]    Compiling serde_derive v1.0.137
[INFO] [stderr]    Compiling futures-sink v0.3.21
[INFO] [stderr]    Compiling serde v1.0.137
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling futures v0.1.31
[INFO] [stderr]    Compiling futures-io v0.3.21
[INFO] [stderr]    Compiling itoa v1.0.2
[INFO] [stderr]    Compiling bytes v0.5.6
[INFO] [stderr]    Compiling pin-project-lite v0.1.12
[INFO] [stderr]    Compiling ryu v1.0.10
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling lock_api v0.4.7
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling pin-project-internal v0.4.29
[INFO] [stderr]    Compiling quick-error v1.2.3
[INFO] [stderr]    Compiling instant v0.1.12
[INFO] [stderr]    Compiling tracing-core v0.1.26
[INFO] [stderr]    Compiling serde_json v1.0.81
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling form_urlencoded v1.0.1
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling copyless v0.1.5
[INFO] [stderr]    Compiling unicode-bidi v0.3.8
[INFO] [stderr]    Compiling generic-array v0.14.5
[INFO] [stderr]    Compiling once_cell v1.11.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling aho-corasick v0.7.18
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling linked-hash-map v0.5.4
[INFO] [stderr]    Compiling iovec v0.1.4
[INFO] [stderr]    Compiling net2 v0.2.37
[INFO] [stderr]    Compiling signal-hook-registry v1.4.0
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling bytes v1.1.0
[INFO] [stderr]    Compiling async-trait v0.1.53
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]    Compiling threadpool v1.8.1
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling mio v0.6.23
[INFO] [stderr]    Compiling unicode-normalization v0.1.19
[INFO] [stderr]    Compiling cc v1.0.73
[INFO] [stderr]    Compiling heck v0.4.0
[INFO] [stderr]    Compiling const_fn v0.4.9
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling match_cfg v0.1.0
[INFO] [stderr]    Compiling hostname v0.3.1
[INFO] [stderr]    Compiling miniz_oxide v0.5.1
[INFO] [stderr]    Compiling http v0.2.7
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling time v0.2.27
[INFO] [stderr]    Compiling indexmap v1.8.1
[INFO] [stderr]    Compiling resolv-conf v0.7.0
[INFO] [stderr]    Compiling lru-cache v0.1.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling humantime v1.3.0
[INFO] [stderr]    Compiling cookie v0.14.4
[INFO] [stderr]    Compiling mio-uds v0.6.8
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling encoding_rs v0.8.31
[INFO] [stderr]    Compiling tokio v0.2.25
[INFO] [stderr]    Compiling termcolor v1.1.3
[INFO] [stderr]    Compiling httparse v1.7.1
[INFO] [stderr]    Compiling regex v1.5.6
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling flate2 v1.0.23
[INFO] [stderr]    Compiling sha-1 v0.9.8
[INFO] [stderr]    Compiling thread_local v1.1.4
[INFO] [stderr]    Compiling socket2 v0.3.19
[INFO] [stderr]    Compiling url v2.2.2
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling num-bigint v0.2.6
[INFO] [stderr]    Compiling sharded-slab v0.1.4
[INFO] [stderr]    Compiling language-tags v0.2.2
[INFO] [stderr]    Compiling ansi_term v0.12.1
[INFO] [stderr]    Compiling lexical-core v0.7.6
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling backtrace v0.3.65
[INFO] [stderr]    Compiling bytestring v1.0.0
[INFO] [stderr]    Compiling nom v5.1.2
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling eyre v0.6.8
[INFO] [stderr]    Compiling matchers v0.0.1
[INFO] [stderr]    Compiling gimli v0.26.1
[INFO] [stderr]    Compiling arrayvec v0.5.2
[INFO] [stderr]    Compiling num-traits v0.1.43
[INFO] [stderr]    Compiling object v0.28.4
[INFO] [stderr]    Compiling untrusted v0.7.1
[INFO] [stderr]    Compiling serde v0.8.23
[INFO] [stderr]    Compiling rustc-demangle v0.1.21
[INFO] [stderr]    Compiling indenter v0.3.3
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling env_logger v0.7.1
[INFO] [stderr]    Compiling owo-colors v1.3.0
[INFO] [stderr]    Compiling pem v0.8.3
[INFO] [stderr]    Compiling tracing-log v0.1.3
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling getrandom v0.2.6
[INFO] [stderr]    Compiling rust-ini v0.13.0
[INFO] [stderr]    Compiling if_chain v1.0.2
[INFO] [stderr]    Compiling addr2line v0.17.0
[INFO] [stderr]    Compiling serde-hjson v0.9.1
[INFO] [stderr]    Compiling tokio-util v0.3.1
[INFO] [stderr]    Compiling validator_types v0.14.0
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling derive_more v0.99.17
[INFO] [stderr]    Compiling tracing-attributes v0.1.21
[INFO] [stderr]    Compiling actix-macros v0.1.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.31
[INFO] [stderr]    Compiling time-macros-impl v0.1.2
[INFO] [stderr]    Compiling pin-project-internal v1.0.10
[INFO] [stderr]    Compiling enum-as-inner v0.3.4
[INFO] [stderr]    Compiling actix-web-codegen v0.4.0
[INFO] [stderr]    Compiling validator_derive v0.14.0
[INFO] [stderr]    Compiling time-macros v0.1.1
[INFO] [stderr]    Compiling pin-project v0.4.29
[INFO] [stderr]    Compiling actix-codec v0.3.0
[INFO] [stderr]    Compiling tracing v0.1.34
[INFO] [stderr]    Compiling thiserror v1.0.31
[INFO] [stderr]    Compiling pin-project v1.0.10
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling actix-threadpool v0.3.3
[INFO] [stderr]    Compiling actix-rt v1.1.1
[INFO] [stderr]    Compiling actix-service v1.0.6
[INFO] [stderr]    Compiling futures-executor v0.3.21
[INFO] [stderr]    Compiling h2 v0.2.7
[INFO] [stderr]    Compiling futures v0.3.21
[INFO] [stderr]    Compiling trust-dns-proto v0.19.7
[INFO] [stderr]    Compiling actix-utils v2.0.0
[INFO] [stderr]    Compiling actix-server v1.0.4
[INFO] [stderr]    Compiling actix-tls v2.0.0
[INFO] [stderr]    Compiling trust-dns-resolver v0.19.7
[INFO] [stderr]    Compiling actix-testing v1.0.1
[INFO] [stderr]    Compiling actix-connect v2.0.0
[INFO] [stderr]    Compiling chrono v0.4.19
[INFO] [stderr]    Compiling tracing-serde v0.1.3
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling actix-router v0.2.7
[INFO] [stderr]    Compiling toml v0.5.9
[INFO] [stderr]    Compiling uuid v0.8.2
[INFO] [stderr]    Compiling validator v0.14.0
[INFO] [stderr]    Compiling tracing-subscriber v0.2.25
[INFO] [stderr]    Compiling simple_asn1 v0.4.1
[INFO] [stderr]    Compiling jsonwebtoken v7.2.0
[INFO] [stderr]    Compiling actix-http v2.2.2
[INFO] [stderr]    Compiling config v0.11.0
[INFO] [stderr]    Compiling tracing-error v0.1.2
[INFO] [stderr]    Compiling color-spantrace v0.1.6
[INFO] [stderr]    Compiling color-eyre v0.5.11
[INFO] [stderr]    Compiling awc v2.0.3
[INFO] [stderr]    Compiling actix-web v3.3.3
[INFO] [stderr]    Compiling actix-web-httpauth v0.5.1
[INFO] [stderr]    Compiling thales_challenge v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `futures::compat::Future01CompatExt`
[INFO] [stdout]  --> src/config/crypto.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use futures::compat::Future01CompatExt;
[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: `uuid::Uuid`
[INFO] [stdout]  --> src/config/crypto.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/config/mod.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::AppResponse`
[INFO] [stdout]  --> src/handlers/signin.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use super::AppResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `authentication::CookieJWT`
[INFO] [stdout]  --> src/handlers/signin.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT};
[INFO] [stdout]   |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth`
[INFO] [stdout]  --> src/handlers/signin.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 |     config::crypto::{Auth, CryptoService},
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 5 |
[INFO] [stdout] 6 |     errors::{AppErrorCode,AppError},
[INFO] [stdout]   |              ^^^^^^^^^^^^ ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload`
[INFO] [stdout]  --> src/handlers/signin.rs:9:17
[INFO] [stdout]   |
[INFO] [stdout] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpM...
[INFO] [stdout]   |                 ^^^^^^^^^^^^                      ^^^^^^^^^^^                            ^^^^^^^^^^^^^^^^^^^^^^^^           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BoxFuture` and `ready`
[INFO] [stdout]   --> src/handlers/signin.rs:10:23
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::future::{ready, BoxFuture};
[INFO] [stdout]    |                       ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `debug` and `instrument`
[INFO] [stdout]   --> src/handlers/signin.rs:11:15
[INFO] [stdout]    |
[INFO] [stdout] 11 | use tracing::{debug, instrument};
[INFO] [stdout]    |               ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/handlers/signin.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/handlers/signin.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 |     if (username == "patient" && password == "patient") {
[INFO] [stdout]    |        ^                                              ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 23 -     if (username == "patient" && password == "patient") {
[INFO] [stdout] 23 +     if username == "patient" && password == "patient"  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/handlers/signin.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |     else if (username == "infirmiere" && password == "infirmiere"){
[INFO] [stdout]    |             ^                                                    ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 26 -     else if (username == "infirmiere" && password == "infirmiere"){
[INFO] [stdout] 26 +     else if username == "infirmiere" && password == "infirmiere" {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/handlers/signin.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |     else if (username == "docteur" && password == "docteur"){
[INFO] [stdout]    |             ^                                              ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 29 -     else if (username == "docteur" && password == "docteur"){
[INFO] [stdout] 29 +     else if username == "docteur" && password == "docteur" {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::AppResponse`
[INFO] [stdout]  --> src/handlers/authentication.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use super::AppResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AppErrorCode` and `Auth`
[INFO] [stdout]  --> src/handlers/authentication.rs:3:22
[INFO] [stdout]   |
[INFO] [stdout] 3 |     config::crypto::{Auth, CryptoService},
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 4 |
[INFO] [stdout] 5 |     errors::{AppErrorCode,AppError},
[INFO] [stdout]   |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json`
[INFO] [stdout]  --> src/handlers/authentication.rs:8:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json};
[INFO] [stdout]   |                           ^^^^^^^^^               ^^^^^^^^^^^^ ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/handlers/authentication.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]   --> src/handlers/authentication.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 | use serde::{Deserialize,Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `web`
[INFO] [stdout]   --> src/main.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse};
[INFO] [stdout]    |                 ^^^                   ^^^^^^^^^                      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HttpMessage`
[INFO] [stdout]  --> src/handlers/signin.rs:9:129
[INFO] [stdout]   |
[INFO] [stdout] 9 | ...sponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage};
[INFO] [stdout]   |                                                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]   --> src/handlers/signin.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 44 |     req: HttpRequest) -> Result<actix_web::HttpResponse,actix_web::HttpResponse> {
[INFO] [stdout]    |     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bearer_result`
[INFO] [stdout]   --> src/handlers/authentication.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |         let bearer_result = BearerAuth::from_request(req, payload).into_inner();
[INFO] [stdout]    |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cookie_result2`
[INFO] [stdout]   --> src/handlers/authentication.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let cookie_result2 = CookieJWT::from_request(req , payload).into_inner();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `payload`
[INFO] [stdout]   --> src/handlers/authentication.rs:75:9
[INFO] [stdout]    |
[INFO] [stdout] 75 |         payload: &mut actix_web::dev::Payload,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/handlers/authentication.rs:85:18
[INFO] [stdout]    |
[INFO] [stdout] 85 |             Some(v) => {cookie_value1 = req
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cookie`
[INFO] [stdout]    --> src/handlers/authentication.rs:102:16
[INFO] [stdout]     |
[INFO] [stdout] 102 |             Ok(cookie) => ready(Ok(
[INFO] [stdout]     |                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LoginUser` is never constructed
[INFO] [stdout]   --> src/main.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | struct LoginUser {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `database_url` is never read
[INFO] [stdout]   --> src/config/mod.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct Config {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub database_url : String,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `key` is never read
[INFO] [stdout]   --> src/config/crypto.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct CryptoService{
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 14 |     pub key : Arc<String>,
[INFO] [stdout]    |         ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Auth` is never constructed
[INFO] [stdout]   --> src/config/crypto.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct Auth {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `AppResult` is never used
[INFO] [stdout]  --> src/handlers/mod.rs:8:6
[INFO] [stdout]   |
[INFO] [stdout] 8 | type AppResult<T> = Result<T, AppError>;
[INFO] [stdout]   |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `AppResponse` is never used
[INFO] [stdout]  --> src/handlers/mod.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | type AppResponse = AppResult<HttpResponse>;
[INFO] [stdout]   |      ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `User` is never constructed
[INFO] [stdout]  --> src/models/user.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct User {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UserLogin` is never constructed
[INFO] [stdout]   --> src/models/user.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct UserLogin {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UpdateProfile` is never constructed
[INFO] [stdout]   --> src/models/user.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub struct UpdateProfile {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PasswordSalt` is never constructed
[INFO] [stdout]   --> src/models/user.rs:46:12
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub struct PasswordSalt {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: 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 2`
[INFO] running `Command { std: "docker" "inspect" "4393adfc116eb96fff4bc68ba17bff66fdfd4780107f6724cb253be3541a6469", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4393adfc116eb96fff4bc68ba17bff66fdfd4780107f6724cb253be3541a6469", kill_on_drop: false }`
[INFO] [stdout] 4393adfc116eb96fff4bc68ba17bff66fdfd4780107f6724cb253be3541a6469
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6a8af0ffd00e290cf33450c8cb343ad0b1733bd37df708e9329cf990a659e8ba
[INFO] running `Command { std: "docker" "start" "-a" "6a8af0ffd00e290cf33450c8cb343ad0b1733bd37df708e9329cf990a659e8ba", kill_on_drop: false }`
[INFO] [stderr]    Compiling thales_challenge v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `futures::compat::Future01CompatExt`
[INFO] [stdout]  --> src/config/crypto.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use futures::compat::Future01CompatExt;
[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: `uuid::Uuid`
[INFO] [stdout]  --> src/config/crypto.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/config/mod.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::AppResponse`
[INFO] [stdout]  --> src/handlers/signin.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use super::AppResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `authentication::CookieJWT`
[INFO] [stdout]  --> src/handlers/signin.rs:2:48
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT};
[INFO] [stdout]   |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth`
[INFO] [stdout]  --> src/handlers/signin.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 |     config::crypto::{Auth, CryptoService},
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 5 |
[INFO] [stdout] 6 |     errors::{AppErrorCode,AppError},
[INFO] [stdout]   |              ^^^^^^^^^^^^ ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload`
[INFO] [stdout]  --> src/handlers/signin.rs:9:17
[INFO] [stdout]   |
[INFO] [stdout] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpM...
[INFO] [stdout]   |                 ^^^^^^^^^^^^                      ^^^^^^^^^^^                            ^^^^^^^^^^^^^^^^^^^^^^^^           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BoxFuture` and `ready`
[INFO] [stdout]   --> src/handlers/signin.rs:10:23
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::future::{ready, BoxFuture};
[INFO] [stdout]    |                       ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `debug` and `instrument`
[INFO] [stdout]   --> src/handlers/signin.rs:11:15
[INFO] [stdout]    |
[INFO] [stdout] 11 | use tracing::{debug, instrument};
[INFO] [stdout]    |               ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/handlers/signin.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/handlers/signin.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 |     if (username == "patient" && password == "patient") {
[INFO] [stdout]    |        ^                                              ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 23 -     if (username == "patient" && password == "patient") {
[INFO] [stdout] 23 +     if username == "patient" && password == "patient"  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/handlers/signin.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |     else if (username == "infirmiere" && password == "infirmiere"){
[INFO] [stdout]    |             ^                                                    ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 26 -     else if (username == "infirmiere" && password == "infirmiere"){
[INFO] [stdout] 26 +     else if username == "infirmiere" && password == "infirmiere" {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/handlers/signin.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |     else if (username == "docteur" && password == "docteur"){
[INFO] [stdout]    |             ^                                              ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 29 -     else if (username == "docteur" && password == "docteur"){
[INFO] [stdout] 29 +     else if username == "docteur" && password == "docteur" {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::AppResponse`
[INFO] [stdout]  --> src/handlers/authentication.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use super::AppResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AppErrorCode` and `Auth`
[INFO] [stdout]  --> src/handlers/authentication.rs:3:22
[INFO] [stdout]   |
[INFO] [stdout] 3 |     config::crypto::{Auth, CryptoService},
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 4 |
[INFO] [stdout] 5 |     errors::{AppErrorCode,AppError},
[INFO] [stdout]   |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json`
[INFO] [stdout]  --> src/handlers/authentication.rs:8:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json};
[INFO] [stdout]   |                           ^^^^^^^^^               ^^^^^^^^^^^^ ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/handlers/authentication.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]   --> src/handlers/authentication.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 | use serde::{Deserialize,Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `web`
[INFO] [stdout]   --> src/main.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse};
[INFO] [stdout]    |                 ^^^                   ^^^^^^^^^                      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HttpMessage`
[INFO] [stdout]  --> src/handlers/signin.rs:9:129
[INFO] [stdout]   |
[INFO] [stdout] 9 | ...sponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage};
[INFO] [stdout]   |                                                               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]   --> src/handlers/signin.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 44 |     req: HttpRequest) -> Result<actix_web::HttpResponse,actix_web::HttpResponse> {
[INFO] [stdout]    |     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bearer_result`
[INFO] [stdout]   --> src/handlers/authentication.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |         let bearer_result = BearerAuth::from_request(req, payload).into_inner();
[INFO] [stdout]    |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cookie_result2`
[INFO] [stdout]   --> src/handlers/authentication.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let cookie_result2 = CookieJWT::from_request(req , payload).into_inner();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `payload`
[INFO] [stdout]   --> src/handlers/authentication.rs:75:9
[INFO] [stdout]    |
[INFO] [stdout] 75 |         payload: &mut actix_web::dev::Payload,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/handlers/authentication.rs:85:18
[INFO] [stdout]    |
[INFO] [stdout] 85 |             Some(v) => {cookie_value1 = req
[INFO] [stdout]    |                  ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cookie`
[INFO] [stdout]    --> src/handlers/authentication.rs:102:16
[INFO] [stdout]     |
[INFO] [stdout] 102 |             Ok(cookie) => ready(Ok(
[INFO] [stdout]     |                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LoginUser` is never constructed
[INFO] [stdout]   --> src/main.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | struct LoginUser {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `database_url` is never read
[INFO] [stdout]   --> src/config/mod.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct Config {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub database_url : String,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `key` is never read
[INFO] [stdout]   --> src/config/crypto.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct CryptoService{
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 14 |     pub key : Arc<String>,
[INFO] [stdout]    |         ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Auth` is never constructed
[INFO] [stdout]   --> src/config/crypto.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct Auth {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `AppResult` is never used
[INFO] [stdout]  --> src/handlers/mod.rs:8:6
[INFO] [stdout]   |
[INFO] [stdout] 8 | type AppResult<T> = Result<T, AppError>;
[INFO] [stdout]   |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `AppResponse` is never used
[INFO] [stdout]  --> src/handlers/mod.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | type AppResponse = AppResult<HttpResponse>;
[INFO] [stdout]   |      ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `User` is never constructed
[INFO] [stdout]  --> src/models/user.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct User {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UserLogin` is never constructed
[INFO] [stdout]   --> src/models/user.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct UserLogin {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UpdateProfile` is never constructed
[INFO] [stdout]   --> src/models/user.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub struct UpdateProfile {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PasswordSalt` is never constructed
[INFO] [stdout]   --> src/models/user.rs:46:12
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub struct PasswordSalt {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.13s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: 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 2`
[INFO] running `Command { std: "docker" "inspect" "6a8af0ffd00e290cf33450c8cb343ad0b1733bd37df708e9329cf990a659e8ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6a8af0ffd00e290cf33450c8cb343ad0b1733bd37df708e9329cf990a659e8ba", kill_on_drop: false }`
[INFO] [stdout] 6a8af0ffd00e290cf33450c8cb343ad0b1733bd37df708e9329cf990a659e8ba
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 31bbeb1319f76fba22fea5fa3bca0d97f5f322f7d7faea6f015924013c4d2199
[INFO] running `Command { std: "docker" "start" "-a" "31bbeb1319f76fba22fea5fa3bca0d97f5f322f7d7faea6f015924013c4d2199", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `futures::compat::Future01CompatExt`
[INFO] [stderr]  --> src/config/crypto.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use futures::compat::Future01CompatExt;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `uuid::Uuid`
[INFO] [stderr]  --> src/config/crypto.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use uuid::Uuid;
[INFO] [stderr]   |     ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::time::Duration`
[INFO] [stderr]   --> src/config/mod.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | use std::time::Duration;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `super::AppResponse`
[INFO] [stderr]  --> src/handlers/signin.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use super::AppResponse;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `authentication::CookieJWT`
[INFO] [stderr]  --> src/handlers/signin.rs:2:48
[INFO] [stderr]   |
[INFO] [stderr] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT};
[INFO] [stderr]   |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth`
[INFO] [stderr]  --> src/handlers/signin.rs:4:22
[INFO] [stderr]   |
[INFO] [stderr] 4 |     config::crypto::{Auth, CryptoService},
[INFO] [stderr]   |                      ^^^^
[INFO] [stderr] 5 |
[INFO] [stderr] 6 |     errors::{AppErrorCode,AppError},
[INFO] [stderr]   |              ^^^^^^^^^^^^ ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload`
[INFO] [stderr]  --> src/handlers/signin.rs:9:17
[INFO] [stderr]   |
[INFO] [stderr] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpM...
[INFO] [stderr]   |                 ^^^^^^^^^^^^                      ^^^^^^^^^^^                            ^^^^^^^^^^^^^^^^^^^^^^^^           ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `BoxFuture` and `ready`
[INFO] [stderr]   --> src/handlers/signin.rs:10:23
[INFO] [stderr]    |
[INFO] [stderr] 10 | use futures::future::{ready, BoxFuture};
[INFO] [stderr]    |                       ^^^^^  ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `debug` and `instrument`
[INFO] [stderr]   --> src/handlers/signin.rs:11:15
[INFO] [stderr]    |
[INFO] [stderr] 11 | use tracing::{debug, instrument};
[INFO] [stderr]    |               ^^^^^  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `uuid::Uuid`
[INFO] [stderr]   --> src/handlers/signin.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 12 | use uuid::Uuid;
[INFO] [stderr]    |     ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/handlers/signin.rs:23:8
[INFO] [stderr]    |
[INFO] [stderr] 23 |     if (username == "patient" && password == "patient") {
[INFO] [stderr]    |        ^                                              ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 23 -     if (username == "patient" && password == "patient") {
[INFO] [stderr] 23 +     if username == "patient" && password == "patient"  {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/handlers/signin.rs:26:13
[INFO] [stderr]    |
[INFO] [stderr] 26 |     else if (username == "infirmiere" && password == "infirmiere"){
[INFO] [stderr]    |             ^                                                    ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 26 -     else if (username == "infirmiere" && password == "infirmiere"){
[INFO] [stderr] 26 +     else if username == "infirmiere" && password == "infirmiere" {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/handlers/signin.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 |     else if (username == "docteur" && password == "docteur"){
[INFO] [stderr]    |             ^                                              ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 29 -     else if (username == "docteur" && password == "docteur"){
[INFO] [stderr] 29 +     else if username == "docteur" && password == "docteur" {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `super::AppResponse`
[INFO] [stderr]  --> src/handlers/authentication.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use super::AppResponse;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `AppErrorCode` and `Auth`
[INFO] [stderr]  --> src/handlers/authentication.rs:3:22
[INFO] [stderr]   |
[INFO] [stderr] 3 |     config::crypto::{Auth, CryptoService},
[INFO] [stderr]   |                      ^^^^
[INFO] [stderr] 4 |
[INFO] [stderr] 5 |     errors::{AppErrorCode,AppError},
[INFO] [stderr]   |              ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json`
[INFO] [stderr]  --> src/handlers/authentication.rs:8:27
[INFO] [stderr]   |
[INFO] [stderr] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json};
[INFO] [stderr]   |                           ^^^^^^^^^               ^^^^^^^^^^^^ ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `uuid::Uuid`
[INFO] [stderr]   --> src/handlers/authentication.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 12 | use uuid::Uuid;
[INFO] [stderr]    |     ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stderr]   --> src/handlers/authentication.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use serde::{Deserialize,Serialize};
[INFO] [stderr]    |             ^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpResponse`, `Responder`, and `web`
[INFO] [stderr]   --> src/main.rs:11:17
[INFO] [stderr]    |
[INFO] [stderr] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse};
[INFO] [stderr]    |                 ^^^                   ^^^^^^^^^                      ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `HttpMessage`
[INFO] [stderr]  --> src/handlers/signin.rs:9:129
[INFO] [stderr]   |
[INFO] [stderr] 9 | ...sponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage};
[INFO] [stderr]   |                                                               ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `req`
[INFO] [stderr]   --> src/handlers/signin.rs:44:5
[INFO] [stderr]    |
[INFO] [stderr] 44 |     req: HttpRequest) -> Result<actix_web::HttpResponse,actix_web::HttpResponse> {
[INFO] [stderr]    |     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `bearer_result`
[INFO] [stderr]   --> src/handlers/authentication.rs:27:13
[INFO] [stderr]    |
[INFO] [stderr] 27 |         let bearer_result = BearerAuth::from_request(req, payload).into_inner();
[INFO] [stderr]    |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `cookie_result2`
[INFO] [stderr]   --> src/handlers/authentication.rs:33:13
[INFO] [stderr]    |
[INFO] [stderr] 33 |         let cookie_result2 = CookieJWT::from_request(req , payload).into_inner();
[INFO] [stderr]    |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `payload`
[INFO] [stderr]   --> src/handlers/authentication.rs:75:9
[INFO] [stderr]    |
[INFO] [stderr] 75 |         payload: &mut actix_web::dev::Payload,
[INFO] [stderr]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `v`
[INFO] [stderr]   --> src/handlers/authentication.rs:85:18
[INFO] [stderr]    |
[INFO] [stderr] 85 |             Some(v) => {cookie_value1 = req
[INFO] [stderr]    |                  ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `cookie`
[INFO] [stderr]    --> src/handlers/authentication.rs:102:16
[INFO] [stderr]     |
[INFO] [stderr] 102 |             Ok(cookie) => ready(Ok(
[INFO] [stderr]     |                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie`
[INFO] [stderr] 
[INFO] [stderr] warning: struct `LoginUser` is never constructed
[INFO] [stderr]   --> src/main.rs:22:8
[INFO] [stderr]    |
[INFO] [stderr] 22 | struct LoginUser {
[INFO] [stderr]    |        ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `database_url` is never read
[INFO] [stderr]   --> src/config/mod.rs:20:9
[INFO] [stderr]    |
[INFO] [stderr] 17 | pub struct Config {
[INFO] [stderr]    |            ------ field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 20 |     pub database_url : String,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `key` is never read
[INFO] [stderr]   --> src/config/crypto.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 13 | pub struct CryptoService{
[INFO] [stderr]    |            ------------- field in this struct
[INFO] [stderr] 14 |     pub key : Arc<String>,
[INFO] [stderr]    |         ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Auth` is never constructed
[INFO] [stderr]   --> src/config/crypto.rs:24:12
[INFO] [stderr]    |
[INFO] [stderr] 24 | pub struct Auth {
[INFO] [stderr]    |            ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `AppResult` is never used
[INFO] [stderr]  --> src/handlers/mod.rs:8:6
[INFO] [stderr]   |
[INFO] [stderr] 8 | type AppResult<T> = Result<T, AppError>;
[INFO] [stderr]   |      ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `AppResponse` is never used
[INFO] [stderr]  --> src/handlers/mod.rs:9:6
[INFO] [stderr]   |
[INFO] [stderr] 9 | type AppResponse = AppResult<HttpResponse>;
[INFO] [stderr]   |      ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `User` is never constructed
[INFO] [stderr]  --> src/models/user.rs:8:12
[INFO] [stderr]   |
[INFO] [stderr] 8 | pub struct User {
[INFO] [stderr]   |            ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `UserLogin` is never constructed
[INFO] [stderr]   --> src/models/user.rs:24:12
[INFO] [stderr]    |
[INFO] [stderr] 24 | pub struct UserLogin {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `UpdateProfile` is never constructed
[INFO] [stderr]   --> src/models/user.rs:39:12
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub struct UpdateProfile {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PasswordSalt` is never constructed
[INFO] [stderr]   --> src/models/user.rs:46:12
[INFO] [stderr]    |
[INFO] [stderr] 46 | pub struct PasswordSalt {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `thales_challenge` (bin "thales_challenge" test) generated 36 warnings (run `cargo fix --bin "thales_challenge" -p thales_challenge --tests` to apply 25 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: 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 2`
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/thales_challenge-04a66e36e2f8853c)
[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" "31bbeb1319f76fba22fea5fa3bca0d97f5f322f7d7faea6f015924013c4d2199", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "31bbeb1319f76fba22fea5fa3bca0d97f5f322f7d7faea6f015924013c4d2199", kill_on_drop: false }`
[INFO] [stdout] 31bbeb1319f76fba22fea5fa3bca0d97f5f322f7d7faea6f015924013c4d2199
