[INFO] cloning repository https://github.com/suharjin01/rust-axum-web [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suharjin01/rust-axum-web" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuharjin01%2Frust-axum-web", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuharjin01%2Frust-axum-web'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6177c11a4a7497f1914ef96bca44d0c53899fd79 [INFO] testing suharjin01/rust-axum-web against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuharjin01%2Frust-axum-web" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/suharjin01/rust-axum-web on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/suharjin01/rust-axum-web [INFO] finished tweaking git repo https://github.com/suharjin01/rust-axum-web [INFO] tweaked toml for git repo https://github.com/suharjin01/rust-axum-web written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/suharjin01/rust-axum-web already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded reserve-port v2.1.0 [INFO] [stderr] Downloaded rust-multipart-rfc7578_2 v0.7.0 [INFO] [stderr] Downloaded axum-test v17.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] babe8ce46b9026e1fca9778108141321c1424ca1bbbc0dd406fb3dc4f0490d18 [INFO] running `Command { std: "docker" "start" "-a" "babe8ce46b9026e1fca9778108141321c1424ca1bbbc0dd406fb3dc4f0490d18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "babe8ce46b9026e1fca9778108141321c1424ca1bbbc0dd406fb3dc4f0490d18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "babe8ce46b9026e1fca9778108141321c1424ca1bbbc0dd406fb3dc4f0490d18", kill_on_drop: false }` [INFO] [stdout] babe8ce46b9026e1fca9778108141321c1424ca1bbbc0dd406fb3dc4f0490d18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd73bdafed2d67568820742dc7fe426d0aea81edf75b3a1fd8a8d880f9ee46cc [INFO] running `Command { std: "docker" "start" "-a" "bd73bdafed2d67568820742dc7fe426d0aea81edf75b3a1fd8a8d880f9ee46cc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling time-core v0.1.3 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling time-macros v0.2.20 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling axum-core v0.5.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling auto-future v1.0.0 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling bytesize v1.3.2 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling time v0.3.39 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling reserve-port v2.1.0 [INFO] [stderr] Compiling rust-multipart-rfc7578_2 v0.7.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling axum v0.8.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling axum-extra v0.10.0 [INFO] [stderr] Compiling axum-test v17.2.0 [INFO] [stderr] Compiling rust-axum-web v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::HashMap` and `sync::Arc` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::anyhow` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Bytes`, `Extension`, `Form`, `Json`, `Multipart`, `Path`, `Query`, `State`, `error_handling::HandleError`, `from_fn`, `map_request`, `post`, and `rejection::JsonRejection` [INFO] [stdout] --> src/main.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | ...::{Body, Bytes}, error_handling::HandleError, extract::{rejection::JsonRejection, Multipart, Path, Query, Request, State}, middleware::{from_fn, map_request, Next}, response::{IntoResponse, Response}, routing::{get, post}, serve, Extension, Form, Json, R... [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^ ^^^^^ ^^^^^^^ ^^^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CookieJar`, `Cookie`, `body`, `response`, and `self` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use axum_extra::{body, extract::{cookie::{self, Cookie}, CookieJar}, response}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MultipartForm`, `Part`, and `TestServer` [INFO] [stdout] --> src/main.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use axum_test::{multipart::{MultipartForm, Part}, TestServer}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap`, `HeaderValue`, `Method`, `Uri`, `header`, `method`, and `request` [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use http::{header, method, request, HeaderMap, HeaderValue, Method, StatusCode, Uri}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_middleware` is never used [INFO] [stdout] --> src/main.rs:465:10 [INFO] [stdout] | [INFO] [stdout] 465 | async fn log_middleware(request: Request, next: Next) -> Response { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `request_id_middleware` is never used [INFO] [stdout] --> src/main.rs:472:10 [INFO] [stdout] | [INFO] [stdout] 472 | async fn request_id_middleware(mut request: Request) -> Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppError` is never constructed [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | struct AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DatabaseConfig` is never constructed [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct DatabaseConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "bd73bdafed2d67568820742dc7fe426d0aea81edf75b3a1fd8a8d880f9ee46cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd73bdafed2d67568820742dc7fe426d0aea81edf75b3a1fd8a8d880f9ee46cc", kill_on_drop: false }` [INFO] [stdout] bd73bdafed2d67568820742dc7fe426d0aea81edf75b3a1fd8a8d880f9ee46cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f45b89dde9d904cfb87935e08f5d63d3b401c55531989bb228efcb9ad546d0fa [INFO] running `Command { std: "docker" "start" "-a" "f45b89dde9d904cfb87935e08f5d63d3b401c55531989bb228efcb9ad546d0fa", kill_on_drop: false }` [INFO] [stderr] Compiling rust-axum-web v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `body`, `response`, and `self` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use axum_extra::{body, extract::{cookie::{self, Cookie}, CookieJar}, response}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `header`, `method`, and `request` [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use http::{header, method, request, HeaderMap, HeaderValue, Method, StatusCode, Uri}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.65s [INFO] running `Command { std: "docker" "inspect" "f45b89dde9d904cfb87935e08f5d63d3b401c55531989bb228efcb9ad546d0fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f45b89dde9d904cfb87935e08f5d63d3b401c55531989bb228efcb9ad546d0fa", kill_on_drop: false }` [INFO] [stdout] f45b89dde9d904cfb87935e08f5d63d3b401c55531989bb228efcb9ad546d0fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fad6ce261b0618b7facae67dfdc3547824e990dd61432b2b43de630233921676 [INFO] running `Command { std: "docker" "start" "-a" "fad6ce261b0618b7facae67dfdc3547824e990dd61432b2b43de630233921676", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `body`, `response`, and `self` [INFO] [stderr] --> src/main.rs:5:18 [INFO] [stderr] | [INFO] [stderr] 5 | use axum_extra::{body, extract::{cookie::{self, Cookie}, CookieJar}, response}; [INFO] [stderr] | ^^^^ ^^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `header`, `method`, and `request` [INFO] [stderr] --> src/main.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | use http::{header, method, request, HeaderMap, HeaderValue, Method, StatusCode, Uri}; [INFO] [stderr] | ^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-axum-web` (bin "rust-axum-web" test) generated 2 warnings (run `cargo fix --bin "rust-axum-web" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_axum_web-fc1fa0ba8ff5adcb) [INFO] [stdout] [INFO] [stdout] running 27 tests [INFO] [stdout] test test_body_string ... ok [INFO] [stdout] test test_header ... ok [INFO] [stdout] test test_cookie_request ... ok [INFO] [stdout] test test_fallback ... ok [INFO] [stdout] test test_form ... ok [INFO] [stdout] test test_json_body ... ok [INFO] [stdout] test test_method_routing ... ok [INFO] [stdout] test test_axum ... ok [INFO] [stdout] test test_error_handling ... ok [INFO] [stdout] test test_multipart ... ok [INFO] [stdout] test test_multiple_route ... ok [INFO] [stdout] test test_query ... ok [INFO] [stdout] test test_middleware ... ok [INFO] [stdout] test test_cookie_response ... ok [INFO] [stdout] test test_multiple_route_nest ... ok [INFO] [stdout] test test_path_parameter ... ok [INFO] [stdout] test test_request ... ok [INFO] [stdout] test test_response_json ... ok [INFO] [stdout] test test_response_tuple3 ... ok [INFO] [stdout] test test_state_extractor ... ok [INFO] [stdout] test test_uri ... ok [INFO] [stdout] test test_state_extension ... ok [INFO] [stdout] test test_state_closure_capture ... ok [INFO] [stdout] test test_response_tuple ... ok [INFO] [stdout] test test_response ... ok [INFO] [stdout] test test_unexpected_eeror ... ok [INFO] [stdout] test test_json_error ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_json_error stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_json_error' panicked at src/main.rs:251:14: [INFO] [stdout] assertion failed: `(left == right)` [INFO] [stdout] [INFO] [stdout] Diff < left / right > : [INFO] [stdout] Error MissingJsonContentType(MissingJsonContentType) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x557b0b390140 - std::backtrace_rs::backtrace::libunwind::trace::h2b8934d68a0c74cb [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x557b0b390140 - std::backtrace_rs::backtrace::trace_unsynchronized::h72d137991fa6eab8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x557b0b390140 - std::sys::backtrace::_print_fmt::h3e831e32e6da920b [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x557b0b390140 - ::fmt::h6d42cc84fc840290 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x557b0b3b9c83 - core::fmt::rt::Argument::fmt::h7239af9e2199f2a8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/fmt/rt.rs:177:76 [INFO] [stdout] 5: 0x557b0b3b9c83 - core::fmt::write::h5af61a909e3ec64d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/fmt/mod.rs:1449:21 [INFO] [stdout] 6: 0x557b0b38c663 - std::io::Write::write_fmt::h64baa9197d9a3b04 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/io/mod.rs:1890:15 [INFO] [stdout] 7: 0x557b0b38ff92 - std::sys::backtrace::BacktraceLock::print::h555579e7396c26ac [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x557b0b39156f - std::panicking::default_hook::{{closure}}::h9128866118196224 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x557b0b391388 - std::panicking::default_hook::h52e9e7314e0255f6 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x557b0af0d435 - as core::ops::function::Fn>::call::hb86f691850cc3c26 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1990:9 [INFO] [stdout] 11: 0x557b0af0d435 - test::test_main::{{closure}}::h903d8079e3c94d93 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:135:21 [INFO] [stdout] 12: 0x557b0b391fe3 - as core::ops::function::Fn>::call::h7c356b28a03897d7 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1990:9 [INFO] [stdout] 13: 0x557b0b391fe3 - std::panicking::rust_panic_with_hook::h541791bcc774ef34 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x557b0b391cba - std::panicking::begin_panic_handler::{{closure}}::h6479a2f0137c7d19 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:704:13 [INFO] [stdout] 15: 0x557b0b390659 - std::sys::backtrace::__rust_end_short_backtrace::ha04e7c0fc61ded91 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x557b0b39194d - rust_begin_unwind [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x557b0ae194e0 - core::panicking::panic_fmt::h5764ee7030b7a73d [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x557b0ae9215f - axum_test::test_response::TestResponse::assert_text::h88c37b882347aa75 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-test-17.2.0/src/test_response.rs:735:9 [INFO] [stdout] 19: 0x557b0ae3a5d0 - rust_axum_web::test_json_error::{{closure}}::hd8eafac66e0c3055 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:251:5 [INFO] [stdout] 20: 0x557b0ae9f5c2 - as core::future::future::Future>::poll::hcc7ff3b4be8aca55 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/future/future.rs:124:9 [INFO] [stdout] 21: 0x557b0ae9f63d - as core::future::future::Future>::poll::he91dcfc7faa49092 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/future/future.rs:124:9 [INFO] [stdout] 22: 0x557b0ae7b17f - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::h1f9428aefca8face [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:733:54 [INFO] [stdout] 23: 0x557b0ae7af05 - tokio::task::coop::with_budget::h2ff13625d384d75d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/task/coop/mod.rs:167:5 [INFO] [stdout] 24: 0x557b0ae7af05 - tokio::task::coop::budget::hc19a0ba7028df5b4 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/task/coop/mod.rs:133:5 [INFO] [stdout] 25: 0x557b0ae7af05 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h571977a689a5fe1d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:733:25 [INFO] [stdout] 26: 0x557b0ae78360 - tokio::runtime::scheduler::current_thread::Context::enter::h5737cb3ea4e93ee4 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:432:19 [INFO] [stdout] 27: 0x557b0ae7a62f - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h44258d0b188e4d25 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:732:36 [INFO] [stdout] 28: 0x557b0ae79904 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h73788eceef8ef6e5 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:820:68 [INFO] [stdout] 29: 0x557b0ae9e3eb - tokio::runtime::context::scoped::Scoped::set::ha07ba32911b715e1 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 30: 0x557b0aeb60f9 - tokio::runtime::context::set_scheduler::{{closure}}::h6903a518fc603fde [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/context.rs:180:26 [INFO] [stdout] 31: 0x557b0aeb3d72 - std::thread::local::LocalKey::try_with::h0d7cfaa73f27c200 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/local.rs:310:12 [INFO] [stdout] 32: 0x557b0aeb3a5e - std::thread::local::LocalKey::with::h2a4280c315cc5322 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/local.rs:274:15 [INFO] [stdout] 33: 0x557b0aeb60ad - tokio::runtime::context::set_scheduler::hf8ee41fdb4b00589 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/context.rs:180:9 [INFO] [stdout] 34: 0x557b0ae79690 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h717f70ece5a46c8f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:820:27 [INFO] [stdout] 35: 0x557b0ae79923 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h80bd860a00509467 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:720:19 [INFO] [stdout] 36: 0x557b0ae77afa - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::hb4e846a9ec4199d1 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:200:28 [INFO] [stdout] 37: 0x557b0ae9e8f6 - tokio::runtime::context::runtime::enter_runtime::h89bb4b33263f2218 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 38: 0x557b0ae77371 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h931ca2b4c6bf6189 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/scheduler/current_thread/mod.rs:188:9 [INFO] [stdout] 39: 0x557b0aea6f03 - tokio::runtime::runtime::Runtime::block_on_inner::hb825eddcd10e7613 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/runtime.rs:368:47 [INFO] [stdout] 40: 0x557b0aea7207 - tokio::runtime::runtime::Runtime::block_on::hc9cd3195235bedb0 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.1/src/runtime/runtime.rs:342:13 [INFO] [stdout] 41: 0x557b0ae39d61 - rust_axum_web::test_json_error::hf9b25f4c00b5994f [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:251:5 [INFO] [stdout] 42: 0x557b0ae39c07 - rust_axum_web::test_json_error::{{closure}}::h47ed1d0a1e812ab0 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:221:27 [INFO] [stdout] 43: 0x557b0ae26a36 - core::ops::function::FnOnce::call_once::hd9089165395553ae [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x557b0af12bbb - core::ops::function::FnOnce::call_once::h1dfa20b1ec1f6e08 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 45: 0x557b0af12bbb - test::__rust_begin_short_backtrace::h7b10906492afc420 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:637:18 [INFO] [stdout] 46: 0x557b0af11aa8 - test::run_test_in_process::{{closure}}::h51c1c0d319f72c0a [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:660:60 [INFO] [stdout] 47: 0x557b0af11aa8 - as core::ops::function::FnOnce<()>>::call_once::h5fadb750f3dbe714 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 48: 0x557b0af11aa8 - std::panicking::try::do_call::h1ca5071cef82bb40 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:587:40 [INFO] [stdout] 49: 0x557b0af11aa8 - std::panicking::try::h6931de76fb9a61b1 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:550:19 [INFO] [stdout] 50: 0x557b0af11aa8 - std::panic::catch_unwind::h67fc9dccf413f4e5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panic.rs:358:14 [INFO] [stdout] 51: 0x557b0af11aa8 - test::run_test_in_process::ha966dfbb1d048be5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:660:27 [INFO] [stdout] 52: 0x557b0af11aa8 - test::run_test::{{closure}}::he209928ac5e8a3b8 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:581:43 [INFO] [stdout] 53: 0x557b0aed5a35 - test::run_test::{{closure}}::h34c6289e0b5ed5a5 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/test/src/lib.rs:611:41 [INFO] [stdout] 54: 0x557b0aed5a35 - std::sys::backtrace::__rust_begin_short_backtrace::h365aabf21799e6fc [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 55: 0x557b0aed94aa - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3d5e582cba74b1c3 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 56: 0x557b0aed94aa - as core::ops::function::FnOnce<()>>::call_once::h1214c75c3f73f94f [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 57: 0x557b0aed94aa - std::panicking::try::do_call::h73540336a45c0cec [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:587:40 [INFO] [stdout] 58: 0x557b0aed94aa - std::panicking::try::h428956564307af63 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panicking.rs:550:19 [INFO] [stdout] 59: 0x557b0aed94aa - std::panic::catch_unwind::h1a53a6ea2f2041e3 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/panic.rs:358:14 [INFO] [stdout] 60: 0x557b0aed94aa - std::thread::Builder::spawn_unchecked_::{{closure}}::hac66cbb88d807e14 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 61: 0x557b0aed94aa - core::ops::function::FnOnce::call_once{{vtable.shim}}::had7e2d02878d3212 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 62: 0x557b0b395fbb - as core::ops::function::FnOnce>::call_once::h292d1663b0785fda [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1976:9 [INFO] [stdout] 63: 0x557b0b395fbb - as core::ops::function::FnOnce>::call_once::h9d4af7b531852d72 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/alloc/src/boxed.rs:1976:9 [INFO] [stdout] 64: 0x557b0b395fbb - std::sys::pal::unix::thread::Thread::new::thread_start::hcc5ed016d554f327 [INFO] [stdout] at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/sys/pal/unix/thread.rs:106:17 [INFO] [stdout] 65: 0x77bcc7964aa4 - [INFO] [stdout] 66: 0x77bcc79f1a34 - clone [INFO] [stdout] 67: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_json_error [INFO] [stdout] [INFO] [stdout] test result: FAILED. 26 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin rust-axum-web` [INFO] running `Command { std: "docker" "inspect" "fad6ce261b0618b7facae67dfdc3547824e990dd61432b2b43de630233921676", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fad6ce261b0618b7facae67dfdc3547824e990dd61432b2b43de630233921676", kill_on_drop: false }` [INFO] [stdout] fad6ce261b0618b7facae67dfdc3547824e990dd61432b2b43de630233921676