[INFO] cloning repository https://github.com/szlan/rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/szlan/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszlan%2Frust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszlan%2Frust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b2df43eb195379cc01ac27b8fa225cce60ac21cf
[INFO] checking szlan/rust against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszlan%2Frust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/szlan/rust
[INFO] finished tweaking git repo https://github.com/szlan/rust
[INFO] tweaked toml for git repo https://github.com/szlan/rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/szlan/rust on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/szlan/rust 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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "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
[ERROR] error running command: no output for 300 seconds
[INFO] checking szlan/rust against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszlan%2Frust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/szlan/rust
[INFO] finished tweaking git repo https://github.com/szlan/rust
[INFO] tweaked toml for git repo https://github.com/szlan/rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/szlan/rust on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/szlan/rust 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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "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 actix-cors v0.7.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1f73f4d505bedf55d0b3009d471eb921eb51dbc0b22527ae4f2d64a5c5f4f9a1
[INFO] running `Command { std: "docker" "start" "-a" "1f73f4d505bedf55d0b3009d471eb921eb51dbc0b22527ae4f2d64a5c5f4f9a1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1f73f4d505bedf55d0b3009d471eb921eb51dbc0b22527ae4f2d64a5c5f4f9a1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1f73f4d505bedf55d0b3009d471eb921eb51dbc0b22527ae4f2d64a5c5f4f9a1", kill_on_drop: false }`
[INFO] [stdout] 1f73f4d505bedf55d0b3009d471eb921eb51dbc0b22527ae4f2d64a5c5f4f9a1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 62e7401609cf1e1e3f9e7abbedf0cdf72474ff85504344f0a5e3c09dc23fae48
[INFO] running `Command { std: "docker" "start" "-a" "62e7401609cf1e1e3f9e7abbedf0cdf72474ff85504344f0a5e3c09dc23fae48", kill_on_drop: false }`
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]    Compiling icu_properties_data v2.0.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]     Checking tokio v1.45.0
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling tracing-core v0.1.33
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling smallvec v1.15.0
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling cc v1.2.22
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking inout v0.1.4
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking universal-hash v0.5.1
[INFO] [stderr]     Checking polyval v0.6.2
[INFO] [stderr]     Checking hkdf v0.12.4
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling socket2 v0.5.9
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling tinyvec v1.9.0
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]     Checking actix-rt v2.10.0
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]     Checking ghash v0.5.1
[INFO] [stderr]     Checking brotli-decompressor v5.0.0
[INFO] [stderr]     Checking aes v0.8.4
[INFO] [stderr]     Checking ctr v0.9.2
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling bytestring v1.4.0
[INFO] [stderr]     Checking aead v0.5.2
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling rustix v1.0.7
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]     Checking brotli v8.0.1
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]     Checking aes-gcm v0.10.3
[INFO] [stderr]    Compiling unicode-normalization v0.1.24
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]     Checking base64 v0.20.0
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]    Compiling sqlx-core v0.7.4
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling whoami v1.6.0
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling home v0.5.11
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]    Compiling sqlx-postgres v0.7.4
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling v_htmlescape v0.15.8
[INFO] [stderr]    Compiling derive_more-impl v1.0.0
[INFO] [stderr]     Checking base64ct v1.7.3
[INFO] [stderr]    Compiling derive_more v0.99.20
[INFO] [stderr]     Checking password-hash v0.5.0
[INFO] [stderr]     Checking blake2 v0.10.6
[INFO] [stderr]     Checking http-range v0.1.5
[INFO] [stderr]     Checking argon2 v0.5.3
[INFO] [stderr]     Checking derive_more v1.0.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking actix-http v3.11.0
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]     Checking sqlx v0.7.4
[INFO] [stderr]     Checking actix-web v4.11.0
[INFO] [stderr]     Checking actix-session v0.10.1
[INFO] [stderr]     Checking actix-cors v0.7.1
[INFO] [stderr]     Checking actix-files v0.6.6
[INFO] [stderr]     Checking news-backend v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]   --> src/db/repo.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 | /         sqlx::query_as!(
[INFO] [stdout] 26 | |             NewsModel,
[INFO] [stdout] 27 | |             r#"
[INFO] [stdout] 28 | |             INSERT INTO news (
[INFO] [stdout] ...  |
[INFO] [stdout] 37 | |             content
[INFO] [stdout] 38 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]   --> src/db/repo.rs:52:9
[INFO] [stdout]    |
[INFO] [stdout] 52 | /         sqlx::query_as!(
[INFO] [stdout] 53 | |             NewsModel,
[INFO] [stdout] 54 | |             r#"
[INFO] [stdout] 55 | |             SELECT
[INFO] [stdout] ...  |
[INFO] [stdout] 67 | |             offset // 已为 i64
[INFO] [stdout] 68 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:99:13
[INFO] [stdout]     |
[INFO] [stdout]  99 | /             sqlx::query_scalar!(
[INFO] [stdout] 100 | |                 "SELECT COUNT(*) FROM news WHERE news_type = $1",
[INFO] [stdout] 101 | |                 cat
[INFO] [stdout] 102 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 |             sqlx::query_scalar!("SELECT COUNT(*) FROM news")
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | /         sqlx::query_as!(
[INFO] [stdout] 127 | |             NewsModel,
[INFO] [stdout] 128 | |             r#"
[INFO] [stdout] 129 | |             SELECT id, news_type, href, title, datetime, content
[INFO] [stdout] ...   |
[INFO] [stdout] 137 | |             offset
[INFO] [stdout] 138 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:165:9
[INFO] [stdout]     |
[INFO] [stdout] 165 | /         sqlx::query_as!(
[INFO] [stdout] 166 | |             UserModel,
[INFO] [stdout] 167 | |             r#"
[INFO] [stdout] 168 | |             INSERT INTO users (name, email, password)
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |             password
[INFO] [stdout] 175 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:182:9
[INFO] [stdout]     |
[INFO] [stdout] 182 | /         sqlx::query_as!(
[INFO] [stdout] 183 | |             UserModel,
[INFO] [stdout] 184 | |             r#"
[INFO] [stdout] 185 | |             SELECT id, name, email, password
[INFO] [stdout] ...   |
[INFO] [stdout] 189 | |             email
[INFO] [stdout] 190 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:197:9
[INFO] [stdout]     |
[INFO] [stdout] 197 | /         sqlx::query_as!(
[INFO] [stdout] 198 | |             UserModel,
[INFO] [stdout] 199 | |             r#"
[INFO] [stdout] 200 | |             SELECT id, name, email, password
[INFO] [stdout] ...   |
[INFO] [stdout] 204 | |             user_id
[INFO] [stdout] 205 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]   --> src/db/repo.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 | /         sqlx::query_as!(
[INFO] [stdout] 26 | |             NewsModel,
[INFO] [stdout] 27 | |             r#"
[INFO] [stdout] 28 | |             INSERT INTO news (
[INFO] [stdout] ...  |
[INFO] [stdout] 37 | |             content
[INFO] [stdout] 38 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]   --> src/db/repo.rs:52:9
[INFO] [stdout]    |
[INFO] [stdout] 52 | /         sqlx::query_as!(
[INFO] [stdout] 53 | |             NewsModel,
[INFO] [stdout] 54 | |             r#"
[INFO] [stdout] 55 | |             SELECT
[INFO] [stdout] ...  |
[INFO] [stdout] 67 | |             offset // 已为 i64
[INFO] [stdout] 68 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:99:13
[INFO] [stdout]     |
[INFO] [stdout]  99 | /             sqlx::query_scalar!(
[INFO] [stdout] 100 | |                 "SELECT COUNT(*) FROM news WHERE news_type = $1",
[INFO] [stdout] 101 | |                 cat
[INFO] [stdout] 102 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 |             sqlx::query_scalar!("SELECT COUNT(*) FROM news")
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | /         sqlx::query_as!(
[INFO] [stdout] 127 | |             NewsModel,
[INFO] [stdout] 128 | |             r#"
[INFO] [stdout] 129 | |             SELECT id, news_type, href, title, datetime, content
[INFO] [stdout] ...   |
[INFO] [stdout] 137 | |             offset
[INFO] [stdout] 138 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:165:9
[INFO] [stdout]     |
[INFO] [stdout] 165 | /         sqlx::query_as!(
[INFO] [stdout] 166 | |             UserModel,
[INFO] [stdout] 167 | |             r#"
[INFO] [stdout] 168 | |             INSERT INTO users (name, email, password)
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |             password
[INFO] [stdout] 175 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:182:9
[INFO] [stdout]     |
[INFO] [stdout] 182 | /         sqlx::query_as!(
[INFO] [stdout] 183 | |             UserModel,
[INFO] [stdout] 184 | |             r#"
[INFO] [stdout] 185 | |             SELECT id, name, email, password
[INFO] [stdout] ...   |
[INFO] [stdout] 189 | |             email
[INFO] [stdout] 190 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
[INFO] [stdout]    --> src/db/repo.rs:197:9
[INFO] [stdout]     |
[INFO] [stdout] 197 | /         sqlx::query_as!(
[INFO] [stdout] 198 | |             UserModel,
[INFO] [stdout] 199 | |             r#"
[INFO] [stdout] 200 | |             SELECT id, name, email, password
[INFO] [stdout] ...   |
[INFO] [stdout] 204 | |             user_id
[INFO] [stdout] 205 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDateTime`
[INFO] [stdout]  --> src/db/repo.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{Utc, NaiveDateTime};
[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: `NewsRepo`
[INFO] [stdout]  --> src/news/service.rs:1:23
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::db::repo::{NewsRepo, UsersRepo};
[INFO] [stdout]   |                       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/news/service.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `http` and `post`
[INFO] [stdout]  --> src/news/routes.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http, web, HttpResponse, Responder, HttpRequest, post}; // 确保引入 post 宏
[INFO] [stdout]   |                 ^^^^                                             ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/news/routes.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::App; // App 可能在 main.rs 中使用
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDateTime`
[INFO] [stdout]  --> src/db/repo.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{Utc, NaiveDateTime};
[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: `sqlx::PgPool`
[INFO] [stdout]    --> src/db/repo.rs:216:9
[INFO] [stdout]     |
[INFO] [stdout] 216 |     use sqlx::PgPool;
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `http` and `post`
[INFO] [stdout]  --> src/news/routes.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http, web, HttpResponse, Responder, HttpRequest, post}; // 确保引入 post 宏
[INFO] [stdout]   |                 ^^^^                                             ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/news/routes.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::App; // App 可能在 main.rs 中使用
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/db/repo.rs:99:13
[INFO] [stdout]     |
[INFO] [stdout]  99 | /             sqlx::query_scalar!(
[INFO] [stdout] 100 | |                 "SELECT COUNT(*) FROM news WHERE news_type = $1",
[INFO] [stdout] 101 | |                 cat
[INFO] [stdout] ...   |
[INFO] [stdout] 104 | |             .await?
[INFO] [stdout]     | |___________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/db/repo.rs:99:13
[INFO] [stdout]     |
[INFO] [stdout]  99 | /             sqlx::query_scalar!(
[INFO] [stdout] 100 | |                 "SELECT COUNT(*) FROM news WHERE news_type = $1",
[INFO] [stdout] 101 | |                 cat
[INFO] [stdout] ...   |
[INFO] [stdout] 104 | |             .await?
[INFO] [stdout]     | |___________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/db/repo.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 | /             sqlx::query_scalar!("SELECT COUNT(*) FROM news")
[INFO] [stdout] 110 | |                 .fetch_one(&self.pool)
[INFO] [stdout] 111 | |                 .await?
[INFO] [stdout]     | |_______________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/db/repo.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 | /             sqlx::query_scalar!("SELECT COUNT(*) FROM news")
[INFO] [stdout] 110 | |                 .fetch_one(&self.pool)
[INFO] [stdout] 111 | |                 .await?
[INFO] [stdout]     | |_______________________^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
[INFO] [stdout]    --> src/db/repo.rs:249:36
[INFO] [stdout]     |
[INFO] [stdout] 249 |         let timestamp = Utc::now().timestamp_nanos();
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::DateTime::<Tz>::timestamp_nanos`: use `timestamp_nanos_opt()` instead
[INFO] [stdout]    --> src/news/service.rs:157:36
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let timestamp = Utc::now().timestamp_nanos();
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/db/repo.rs:224:13
[INFO] [stdout]     |
[INFO] [stdout] 224 |         let mut tx = pool.begin().await.unwrap();
[INFO] [stdout]     |             ----^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/db/repo.rs:246:13
[INFO] [stdout]     |
[INFO] [stdout] 246 |         let mut tx = pool.begin().await.unwrap();
[INFO] [stdout]     |             ----^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/news/dao.rs:111:13
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut tx = pool.begin().await.unwrap();
[INFO] [stdout]     |             ----^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `service`
[INFO] [stdout]    --> src/news/service.rs:145:13
[INFO] [stdout]     |
[INFO] [stdout] 145 |         let service = NewsService::new(news_dao, users_repo);
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `news-backend` (lib) due to 10 previous errors; 5 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `news-backend` (lib test) due to 10 previous errors; 10 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "62e7401609cf1e1e3f9e7abbedf0cdf72474ff85504344f0a5e3c09dc23fae48", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "62e7401609cf1e1e3f9e7abbedf0cdf72474ff85504344f0a5e3c09dc23fae48", kill_on_drop: false }`
[INFO] [stdout] 62e7401609cf1e1e3f9e7abbedf0cdf72474ff85504344f0a5e3c09dc23fae48
