[INFO] cloning repository https://github.com/oday-spec/RUST-CRUD [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oday-spec/RUST-CRUD" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foday-spec%2FRUST-CRUD", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foday-spec%2FRUST-CRUD'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63060bf7fab3e3904fbaec1858b1b38c73e5faf3 [INFO] checking oday-spec/RUST-CRUD against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foday-spec%2FRUST-CRUD" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oday-spec/RUST-CRUD on toolchain cd420d8bda33494ba3cc45048d5f067484a32b94 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oday-spec/RUST-CRUD [INFO] finished tweaking git repo https://github.com/oday-spec/RUST-CRUD [INFO] tweaked toml for git repo https://github.com/oday-spec/RUST-CRUD written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/oday-spec/RUST-CRUD 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" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 63970ab1439d46f86841c606cf468ca753a9421db0e952c76f2add9f933fa0c8 [INFO] running `Command { std: "docker" "start" "-a" "63970ab1439d46f86841c606cf468ca753a9421db0e952c76f2add9f933fa0c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63970ab1439d46f86841c606cf468ca753a9421db0e952c76f2add9f933fa0c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63970ab1439d46f86841c606cf468ca753a9421db0e952c76f2add9f933fa0c8", kill_on_drop: false }` [INFO] [stdout] 63970ab1439d46f86841c606cf468ca753a9421db0e952c76f2add9f933fa0c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c70437d8785ed55550b1147bc9fd489fbe8d60a510f86a143a9449bcf344b209 [INFO] running `Command { std: "docker" "start" "-a" "c70437d8785ed55550b1147bc9fd489fbe8d60a510f86a143a9449bcf344b209", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling rustls v0.23.14 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling webpki-roots v0.26.6 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [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 thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking regex v1.11.0 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking term v0.7.0 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking encode_unicode v1.0.0 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking prettytable v0.10.0 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking CRUD-sqlx-potgres v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `add_post`, `delete_post_by_id`, `show_posts`, and `update_post` [INFO] [stdout] --> src/main.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::crud::{add_post, show_posts, show_post_by_id, update_post, delete_post_by_id}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `add_post`, `delete_post_by_id`, `show_posts`, and `update_post` [INFO] [stdout] --> src/main.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::crud::{add_post, show_posts, show_post_by_id, update_post, delete_post_by_id}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_post` is never used [INFO] [stdout] --> src/crud.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn add_post( db: &PgPool, post: &Post) -> Result<(), anyhow::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_posts` is never used [INFO] [stdout] --> src/crud.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn show_posts(db: &PgPool) -> Result, anyhow::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_post` is never used [INFO] [stdout] --> src/crud.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | pub async fn update_post(db: &PgPool, post: &Post) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_post_by_id` is never used [INFO] [stdout] --> src/crud.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn delete_post_by_id(db: &PgPool, id : i32) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Entities` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Entities; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `entities` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | for post in posts { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + while let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + if let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_post` is never used [INFO] [stdout] --> src/crud.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn add_post( db: &PgPool, post: &Post) -> Result<(), anyhow::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_posts` is never used [INFO] [stdout] --> src/crud.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn show_posts(db: &PgPool) -> Result, anyhow::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_post` is never used [INFO] [stdout] --> src/crud.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | pub async fn update_post(db: &PgPool, post: &Post) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_post_by_id` is never used [INFO] [stdout] --> src/crud.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn delete_post_by_id(db: &PgPool, id : i32) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Entities` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Entities; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `entities` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | for post in posts { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + while let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + if let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 04s [INFO] running `Command { std: "docker" "inspect" "c70437d8785ed55550b1147bc9fd489fbe8d60a510f86a143a9449bcf344b209", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c70437d8785ed55550b1147bc9fd489fbe8d60a510f86a143a9449bcf344b209", kill_on_drop: false }` [INFO] [stdout] c70437d8785ed55550b1147bc9fd489fbe8d60a510f86a143a9449bcf344b209