[INFO] cloning repository https://github.com/HugoxSaraiva/rust-rest-api-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HugoxSaraiva/rust-rest-api-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHugoxSaraiva%2Frust-rest-api-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHugoxSaraiva%2Frust-rest-api-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b04bc045c0ce2cffe30ff17ea10b9d22ed69780a [INFO] testing HugoxSaraiva/rust-rest-api-template/b04bc045c0ce2cffe30ff17ea10b9d22ed69780a against master#9e297bf54d31eb3b30067208ff9af4416945a2ed for pr-125507 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHugoxSaraiva%2Frust-rest-api-template" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HugoxSaraiva/rust-rest-api-template on toolchain 9e297bf54d31eb3b30067208ff9af4416945a2ed [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HugoxSaraiva/rust-rest-api-template [INFO] finished tweaking git repo https://github.com/HugoxSaraiva/rust-rest-api-template [INFO] tweaked toml for git repo https://github.com/HugoxSaraiva/rust-rest-api-template written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HugoxSaraiva/rust-rest-api-template 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" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utoipa v4.1.0 [INFO] [stderr] Downloaded utoipa-gen v4.1.0 [INFO] [stderr] Downloaded utoipa-swagger-ui v6.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 63dffd0fe17e45f0b06ffc4a39151c72c6973bdd495848df47e1ae996719731b [INFO] running `Command { std: "docker" "start" "-a" "63dffd0fe17e45f0b06ffc4a39151c72c6973bdd495848df47e1ae996719731b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63dffd0fe17e45f0b06ffc4a39151c72c6973bdd495848df47e1ae996719731b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63dffd0fe17e45f0b06ffc4a39151c72c6973bdd495848df47e1ae996719731b", kill_on_drop: false }` [INFO] [stdout] 63dffd0fe17e45f0b06ffc4a39151c72c6973bdd495848df47e1ae996719731b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e0e65ff9537d76ded21372a703b04c822e7069af7f0b622858f0107edfc0a82 [INFO] running `Command { std: "docker" "start" "-a" "4e0e65ff9537d76ded21372a703b04c822e7069af7f0b622858f0107edfc0a82", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling unicode-bidi v0.3.14 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling http v1.0.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling axum-core v0.4.2 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling rust-embed-utils v8.2.0 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Compiling http-body-util v0.1.0 [INFO] [stderr] Compiling axum v0.7.3 [INFO] [stderr] Compiling rust-embed-impl v8.2.0 [INFO] [stderr] Compiling utoipa-swagger-ui v6.0.0 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling rust-embed v8.2.0 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling uuid v1.6.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.15 [INFO] [stderr] Compiling itertools v0.12.0 [INFO] [stderr] Compiling utoipa-gen v4.1.0 [INFO] [stderr] Compiling h2 v0.4.0 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling utoipa v4.1.0 [INFO] [stderr] Compiling hyper v1.1.0 [INFO] [stderr] Compiling sqlx-core v0.7.3 [INFO] [stderr] Compiling hyper-util v0.1.2 [INFO] [stderr] Compiling sqlx-postgres v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Compiling sqlx v0.7.3 [INFO] [stderr] Compiling rust-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TodoError` [INFO] [stdout] --> src/controllers/todo.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::todo::{Todo, TodoError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/controllers/todo.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | pub async fn search_todos(query: Query) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `done` are never read [INFO] [stdout] --> src/controllers/todo.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct TodoSearchQuery { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 34 | /// Search by value. Search is case insensitive. [INFO] [stdout] 35 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | /// Search by `done` status. [INFO] [stdout] 37 | done: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::config`, `crate::http` [INFO] [stdout] --> src/main.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config::Config, http}; [INFO] [stdout] | ^^^^^^ ^^^^ no `http` in the root [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `rust_api::config` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] axum::http [INFO] [stdout] rust_api::http [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `db_url` in this scope [INFO] [stdout] --> src/main.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | .connect(&db_url) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `Router`, `extract::State`, `http::StatusCode`, and `routing::get` [INFO] [stdout] --> src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{extract::State, http::StatusCode, routing::get, Json, Router}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-api` (bin "rust-api") due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "4e0e65ff9537d76ded21372a703b04c822e7069af7f0b622858f0107edfc0a82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e0e65ff9537d76ded21372a703b04c822e7069af7f0b622858f0107edfc0a82", kill_on_drop: false }` [INFO] [stdout] 4e0e65ff9537d76ded21372a703b04c822e7069af7f0b622858f0107edfc0a82