[INFO] cloning repository https://github.com/malred/rust-web-starter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/malred/rust-web-starter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalred%2Frust-web-starter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalred%2Frust-web-starter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e27becb71e20583733ab9eb413afcd7b9daafaf [INFO] building malred/rust-web-starter against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalred%2Frust-web-starter" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/malred/rust-web-starter [INFO] finished tweaking git repo https://github.com/malred/rust-web-starter [INFO] tweaked toml for git repo https://github.com/malred/rust-web-starter written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/malred/rust-web-starter on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/malred/rust-web-starter 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c5f21b3d15bb351db5deefd685fd84c3b09110cf4f56834ade9a9b813d33830 [INFO] running `Command { std: "docker" "start" "-a" "4c5f21b3d15bb351db5deefd685fd84c3b09110cf4f56834ade9a9b813d33830", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c5f21b3d15bb351db5deefd685fd84c3b09110cf4f56834ade9a9b813d33830", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c5f21b3d15bb351db5deefd685fd84c3b09110cf4f56834ade9a9b813d33830", kill_on_drop: false }` [INFO] [stdout] 4c5f21b3d15bb351db5deefd685fd84c3b09110cf4f56834ade9a9b813d33830 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 890e7534e8e0894ac202d9e0003a15a497c7d636fd40e285def52fde14eab02d [INFO] running `Command { std: "docker" "start" "-a" "890e7534e8e0894ac202d9e0003a15a497c7d636fd40e285def52fde14eab02d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling libsqlite3-sys v0.24.2 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling webpki v0.22.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling utoipa-gen v4.3.1 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling sqlx-rt v0.6.3 [INFO] [stderr] Compiling rust-embed-utils v8.7.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling sqlx-core v0.6.3 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling rust-embed-impl v8.7.2 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling utoipa-swagger-ui v6.0.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling utoipa v4.2.3 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling trim-in-place v0.1.7 [INFO] [stderr] Compiling rust-ini v0.21.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling yaml-rust2 v0.10.3 [INFO] [stderr] Compiling async-compression v0.4.25 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling rust-embed v8.7.2 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling sqlx-macros v0.6.3 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling config v0.15.11 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling sqlx v0.6.3 [INFO] [stderr] Compiling utoipa-redoc v3.0.0 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling crypto v0.5.1 [INFO] [stderr] Compiling rust-web-starter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::handlers::posts::NewPost` [INFO] [stdout] --> src/handlers/uesr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::handlers::posts::NewPost; [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: `validate_token` [INFO] [stdout] --> src/handlers/uesr.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::jwt::{generate_token, validate_token}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::HeaderMap` [INFO] [stdout] --> src/handlers/uesr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::http::HeaderMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/handlers/uesr.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | extract::{Path, State}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::response::Html` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use axum::response::Html; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Route` [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::routing::{Route, delete, patch}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_service` [INFO] [stdout] --> src/main.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | routing::{get, get_service, post}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Method` and `header` [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | use http::{Method, header}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ServeDir` and `ServeFile` [INFO] [stdout] --> src/main.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | services::{ServeDir, ServeFile}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | use tracing::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/handlers/uesr.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let resp = sqlx::query("INSERT INTO users (username, password, email) values ($1, $2, $3)") [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/handlers/posts.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let resp = sqlx::query("INSERT INTO posts (title, body) values ($1, $2)") [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handlers/posts.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let result = sqlx::query("UPDATE posts SET title=$1, body=$2 WHERE id=$3") [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handlers/posts.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let result = sqlx::query("DELETE FROM posts WHERE id = $1") [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validateUser` should have a snake case name [INFO] [stdout] --> src/handlers/uesr.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub async fn validateUser( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `validate_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / sqlx::query( [INFO] [stdout] 44 | | r#"create table users [INFO] [stdout] 45 | | ( [INFO] [stdout] 46 | | id integer [INFO] [stdout] ... | [INFO] [stdout] 54 | | .execute(&pool) [INFO] [stdout] 55 | | .await; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = sqlx::query( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / sqlx::query( [INFO] [stdout] 57 | | r#"create table posts [INFO] [stdout] 58 | | ( [INFO] [stdout] 59 | | id integer [INFO] [stdout] ... | [INFO] [stdout] 72 | | .execute(&pool) [INFO] [stdout] 73 | | .await; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = sqlx::query( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `postRouter` should have a snake case name [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let postRouter = Router::new() [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `post_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userRouter` should have a snake case name [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let userRouter = Router::new() [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `user_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfileRouter` should have a snake case name [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let userProfileRouter = Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 45s [INFO] running `Command { std: "docker" "inspect" "890e7534e8e0894ac202d9e0003a15a497c7d636fd40e285def52fde14eab02d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "890e7534e8e0894ac202d9e0003a15a497c7d636fd40e285def52fde14eab02d", kill_on_drop: false }` [INFO] [stdout] 890e7534e8e0894ac202d9e0003a15a497c7d636fd40e285def52fde14eab02d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcf93f57a96fdc561be4d85ddec8c469c59274b27bdc0a897849a8221b12f648 [INFO] running `Command { std: "docker" "start" "-a" "bcf93f57a96fdc561be4d85ddec8c469c59274b27bdc0a897849a8221b12f648", kill_on_drop: false }` [INFO] [stderr] Compiling rust-web-starter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::handlers::posts::NewPost` [INFO] [stdout] --> src/handlers/uesr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::handlers::posts::NewPost; [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: `validate_token` [INFO] [stdout] --> src/handlers/uesr.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::jwt::{generate_token, validate_token}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::HeaderMap` [INFO] [stdout] --> src/handlers/uesr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::http::HeaderMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/handlers/uesr.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | extract::{Path, State}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::response::Html` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use axum::response::Html; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Route` [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use axum::routing::{Route, delete, patch}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_service` [INFO] [stdout] --> src/main.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | routing::{get, get_service, post}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Method` and `header` [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | use http::{Method, header}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ServeDir` and `ServeFile` [INFO] [stdout] --> src/main.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | services::{ServeDir, ServeFile}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | use tracing::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/handlers/posts.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let resp = sqlx::query("INSERT INTO posts (title, body) values ($1, $2)") [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/handlers/uesr.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let resp = sqlx::query("INSERT INTO users (username, password, email) values ($1, $2, $3)") [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handlers/posts.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let result = sqlx::query("DELETE FROM posts WHERE id = $1") [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handlers/posts.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let result = sqlx::query("UPDATE posts SET title=$1, body=$2 WHERE id=$3") [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validateUser` should have a snake case name [INFO] [stdout] --> src/handlers/uesr.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub async fn validateUser( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `validate_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / sqlx::query( [INFO] [stdout] 44 | | r#"create table users [INFO] [stdout] 45 | | ( [INFO] [stdout] 46 | | id integer [INFO] [stdout] ... | [INFO] [stdout] 54 | | .execute(&pool) [INFO] [stdout] 55 | | .await; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = sqlx::query( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / sqlx::query( [INFO] [stdout] 57 | | r#"create table posts [INFO] [stdout] 58 | | ( [INFO] [stdout] 59 | | id integer [INFO] [stdout] ... | [INFO] [stdout] 72 | | .execute(&pool) [INFO] [stdout] 73 | | .await; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = sqlx::query( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `postRouter` should have a snake case name [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let postRouter = Router::new() [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `post_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userRouter` should have a snake case name [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let userRouter = Router::new() [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `user_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userProfileRouter` should have a snake case name [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let userProfileRouter = Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `user_profile_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.93s [INFO] running `Command { std: "docker" "inspect" "bcf93f57a96fdc561be4d85ddec8c469c59274b27bdc0a897849a8221b12f648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcf93f57a96fdc561be4d85ddec8c469c59274b27bdc0a897849a8221b12f648", kill_on_drop: false }` [INFO] [stdout] bcf93f57a96fdc561be4d85ddec8c469c59274b27bdc0a897849a8221b12f648