[INFO] cloning repository https://github.com/Jakkapat-Chongsuwat/rust-rest-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jakkapat-Chongsuwat/rust-rest-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakkapat-Chongsuwat%2Frust-rest-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakkapat-Chongsuwat%2Frust-rest-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca61f10835f91c0a284d2b172d0f51276e30c759 [INFO] testing Jakkapat-Chongsuwat/rust-rest-api against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakkapat-Chongsuwat%2Frust-rest-api" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Jakkapat-Chongsuwat/rust-rest-api [INFO] finished tweaking git repo https://github.com/Jakkapat-Chongsuwat/rust-rest-api [INFO] tweaked toml for git repo https://github.com/Jakkapat-Chongsuwat/rust-rest-api written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Jakkapat-Chongsuwat/rust-rest-api on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Jakkapat-Chongsuwat/rust-rest-api 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded axum-macros v0.1.2 [INFO] [stderr] Downloaded iri-string v0.7.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 385dc743b1d94ab988551e30f118807e876b6636c37e98e15c08ab70182d9e7b [INFO] running `Command { std: "docker" "start" "-a" "385dc743b1d94ab988551e30f118807e876b6636c37e98e15c08ab70182d9e7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "385dc743b1d94ab988551e30f118807e876b6636c37e98e15c08ab70182d9e7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "385dc743b1d94ab988551e30f118807e876b6636c37e98e15c08ab70182d9e7b", kill_on_drop: false }` [INFO] [stdout] 385dc743b1d94ab988551e30f118807e876b6636c37e98e15c08ab70182d9e7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 971a00ddb725f9bb932005719168d4a1a0d54b56613a013c14a8155e2d716a5a [INFO] running `Command { std: "docker" "start" "-a" "971a00ddb725f9bb932005719168d4a1a0d54b56613a013c14a8155e2d716a5a", kill_on_drop: false }` [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling ipnet v2.10.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling serde_with_macros v3.9.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling unicode-properties v0.1.2 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling mongodb-internal-macros v3.1.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling http-range-header v0.4.1 [INFO] [stderr] Compiling iri-string v0.7.6 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling axum-macros v0.1.2 [INFO] [stderr] Compiling hickory-proto v0.24.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling tower v0.5.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling serde_with v3.9.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling async-compression v0.4.12 [INFO] [stderr] Compiling bson v2.13.0 [INFO] [stderr] Compiling axum v0.7.7 [INFO] [stderr] Compiling tower-http v0.6.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hickory-resolver v0.24.1 [INFO] [stderr] Compiling mongodb v3.1.0 [INFO] [stderr] Compiling rust-rest-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `http_body` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use http_body::BodyExt; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `http_body` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_body`, use `cargo add http_body` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemHandler` [INFO] [stdout] --> src/main.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | let item_handler = Arc::new(ItemHandler::new(item_use_case.clone())); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ItemHandler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::handlers::ItemHandler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `axum::extract::State>: FromRequest` is not satisfied [INFO] [stdout] --> src/items/handlers.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | State(handler): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromRequest` is not implemented for `axum::extract::State>` [INFO] [stdout] | [INFO] [stdout] = note: Function argument is not a valid axum extractor. [INFO] [stdout] See `https://docs.rs/axum/0.7/axum/extract/index.html` for details [INFO] [stdout] = help: the following other types implement trait `FromRequest`: [INFO] [stdout] (T1, T2) [INFO] [stdout] (T1, T2, T3) [INFO] [stdout] (T1, T2, T3, T4) [INFO] [stdout] (T1, T2, T3, T4, T5) [INFO] [stdout] (T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] (T1, T2, T3, T4, T5, T6, T7, T8) [INFO] [stdout] (T1, T2, T3, T4, T5, T6, T7, T8, T9) [INFO] [stdout] and 18 others [INFO] [stdout] = help: see issue #48214 [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn HttpBody + Send + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/items/handlers.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | Json(req): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ `(dyn HttpBody + Send + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn HttpBody + Send + 'static)` [INFO] [stdout] = help: the trait `FromRequest` is implemented for `Json` [INFO] [stdout] = note: required for `Unique<(dyn HttpBody + Send + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn HttpBody + Send + 'static)>` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Pin + Send + 'static)>>` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/pin.rs:1094:12 [INFO] [stdout] note: required because it appears within the type `http_body_util::combinators::box_body::UnsyncBoxBody` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/http-body-util-0.1.2/src/combinators/box_body.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UnsyncBoxBody { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `Body` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-core-0.4.5/src/body.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Body(BoxBody); [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: required for `Json` to implement `FromRequest` [INFO] [stdout] = help: see issue #48214 [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `map_response_body` found for struct `ServiceBuilder` in the current scope [INFO] [stdout] --> src/main.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 41 | / ServiceBuilder::new() [INFO] [stdout] 42 | | .layer(cors) [INFO] [stdout] 43 | | .map_response_body(|body| body.boxed()), // Use the boxed() method [INFO] [stdout] | |_________________-^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.1/src/builder.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn map_response_body( [INFO] [stdout] | ----------------- the method is available for `ServiceBuilder>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `ServiceBuilderExt` which provides `map_response_body` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use tower_http::ServiceBuilderExt; [INFO] [stdout] | [INFO] [stdout] help: there is a method `map_response` with a similar name [INFO] [stdout] | [INFO] [stdout] 43 - .map_response_body(|body| body.boxed()), // Use the boxed() method [INFO] [stdout] 43 + .map_response(|body| body.boxed()), // Use the boxed() method [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-rest-api` (bin "rust-rest-api") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "971a00ddb725f9bb932005719168d4a1a0d54b56613a013c14a8155e2d716a5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "971a00ddb725f9bb932005719168d4a1a0d54b56613a013c14a8155e2d716a5a", kill_on_drop: false }` [INFO] [stdout] 971a00ddb725f9bb932005719168d4a1a0d54b56613a013c14a8155e2d716a5a